*, *::before, *::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.5;
    background-color: rgb(243, 243, 255);
    color: #333;
}

header {
    background-color: rgb(221, 221, 255);
    padding: 10px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.icon {
    padding: 10px;
    display: flex;
    gap: 20px;
    font-size: 20px;
}

header img {
    width: auto;
    max-width: 100%;
    height: 50px;
}

main {
    background-image: linear-gradient( 45deg, rgb(205, 205, 255), white, rgb(205, 205, 255), white, rgb(205, 205, 255), white, rgb(205, 205, 255), white, rgb(205, 205, 255), white, rgb(205, 205, 255), white, rgb(205, 205, 255), white, rgb(205, 205, 255), white);
    padding: 20px;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.card-box {
    width: 100%;
    max-width: 500px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    text-align: center;
}

.card-box h2 {
    color: #007bff;
}

.card-calculater h1 {
    color: #007bff;
}

.banner-card {
    display: flex;
    justify-content: center;
}

.banner-card img{
    padding: 20px;
    width: 100%;
    max-width: 1020px;
    height: auto;
    border-radius: 40px;
}

.card-calculater {
    background-color: rgb(255, 255, 255);
    padding: 50px 30px;
    text-align: center;
    border-radius: 20px;
    box-shadow: 10px 10px 20px rgb(191, 191, 191);
    width: 100%;
    max-width: 500px;
    transition: all 0.3s ease;
}

.card-calculater:hover {
    box-shadow: 15px 15px 30px rgba(191, 191, 191, 0.5);
    transform: translateY(-5px);
}

.card-calculater h1 {
    color: #007bff;
    margin-bottom: 30px;
    font-size: 28px;
}

.card-calculater form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.card-calculater label {
    font-weight: bold;
    color: #555;
    font-size: 16px;
}

.card-calculater input {
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    transition: border-color 0.3s;
}

.card-calculater input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

.card-calculater button {
    padding: 12px 40px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.card-calculater button:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.card-calculater button:active {
    transform: scale(0.98);
}

.birthday-section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    gap: 20px;
    max-width: 1040px;
    color: rgb(143, 143, 143);
}

.birthday-section span {
    font-size: 42px;
    color: #007bff;
}

.birthday-section p {
    color: rgb(105, 105, 105);
    text-align: left;
    width: 100%;
}

.birthday-section img{
    margin: 10px auto;
    width: 100%;
    max-width: 1000px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Modern Responsive Footer */
footer, .site-footer {
    background-color: #0b1c30;
    color: #94a3b8;
    padding: 60px 0 24px;
    font-family: Inter, Arial, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.4fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 40px;
    width: auto;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo:hover img {
    opacity: 0.85;
}

.footer-tagline {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 20px;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: #0062ff;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 98, 255, 0.3);
}

.footer-heading {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 20px;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 8px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: #0062ff;
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.92rem;
    transition: all 0.25s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #60a5fa;
    transform: translateX(4px);
}

.footer-badge-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-badge-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
    font-size: 0.88rem;
}

.footer-badge-item i {
    color: #60a5fa;
    font-size: 1.1rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.88rem;
    color: #64748b;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-bottom p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-bottom .heart {
    color: #ef4444;
    display: inline-block;
    animation: heartbeat 1.8s infinite ease-in-out;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.back-to-top {
    color: #94a3b8;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    transition: color 0.25s ease;
}

.back-to-top i {
    font-size: 1.3rem;
}

.back-to-top:hover {
    color: #60a5fa;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 576px) {
    footer, .site-footer {
        padding: 40px 0 20px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Modal Popup Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    margin: auto;
    padding: 40px;
    border-radius: 15px;
    width: 90%;
    max-width: 500px;
    top: 50%;
    position: relative;
    transform: translateY(-50%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(-150%);
        opacity: 0;
    }
    to {
        transform: translateY(-50%);
        opacity: 1;
    }
}

.close {
    color: #999;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover,
.close:focus {
    color: #000;
}

#modalResult h3 {
    color: #007bff;
    margin-bottom: 20px;
    font-size: 24px;
}

#modalResult p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin: 10px 0;
}

@media (max-width: 1024px) {
    .banner-card img {
        max-width: 100%;
        height: auto;
    }

    .birthday-section {
        padding: 25px 15px;
    }
}

@media (max-width: 768px) {
    header {
        justify-content: center;
        text-align: center;
    }

    .card {
        flex-direction: column;
        align-items: center;
    }

    .card-box,
    .card-calculater {
        max-width: 100%;
    }

    .card-calculater {
        padding: 30px 20px;
    }

    .card-calculater input {
        width: 100%;
    }

    .birthday-section span {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 15px 12px;
    }

    .card-calculater {
        padding: 24px 16px;
    }

    .banner-card img {
        border-radius: 25px;
    }

    .birthday-section {
        padding: 20px 15px;
        margin: 15px;
    }

    footer a {
        margin: 8px 6px;
        font-size: 14px;
    }
}

#modalResult strong {
    color: #333;
    font-weight: bold;
}

.about-us {
    padding: 20px
}

.dmca {
    padding: 20px;
}

.terms-section {
    padding: 20px;
}

.site-map-section {
    padding: 20px;
    margin-bottom: 290px;
}

.ad-banner-728 {
    padding: 10px;
    display: flex;
    justify-content: center;
}

/* Calculators Grid Styles */
.calculators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.calc-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.calc-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}
.calc-card h3 {
    color: #007bff;
    margin-top: 0;
    font-size: 24px;
}
.calc-card p {
    color: #666;
    margin: 10px 0 0 0;
}
.calc-card .emoji {
    font-size: 40px;
    margin-bottom: 15px;
}

/* Homepage main content */
.homepage {
    padding: 0;
    background: #f8f9ff;
    font-family: Inter, Arial, sans-serif;
    color: #0b1c30;
}

.home-hero {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 260px;
    overflow: hidden;
    padding: 48px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #dce9ff 50%, #eff4ff 100%);
}

.home-hero::before,
.home-hero::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    filter: blur(48px);
    opacity: .45;
}

.home-hero::before { width: 240px; height: 240px; top: -100px; left: -45px; background: #b4c5ff; }
.home-hero::after { width: 260px; height: 260px; right: -65px; bottom: -125px; background: #d3e4fe; }

.home-hero__content { position: relative; z-index: 1; max-width: 900px; }

.home-hero h1 {
    margin: 0;
    font-family: "Hanken Grotesk", Inter, Arial, sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -.03em;
    color: #0b1c30;
}

.home-hero p {
    max-width: 720px;
    margin: 20px auto 0;
    color: #424656;
    font-size: clamp(.95rem, 1.6vw, 1.1rem);
    line-height: 1.5;
}

.home-tools { max-width: 1280px; margin: 0 auto; padding: 48px 32px; }

.home-tools .calculators-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    max-width: none;
    margin: 0;
    padding: 0;
}

.home-tools .calc-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 245px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 16px;
    background: rgba(255, 255, 255, .85);
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, .04);
    color: #0b1c30;
    text-align: center;
    text-decoration: none;
    transition: transform .3s ease, box-shadow .3s ease, background-color .3s ease;
}

.home-tools .calc-card:hover,
.home-tools .calc-card:focus-visible { transform: translateY(-4px); background: #fff; box-shadow: 0 12px 30px -4px rgba(15, 23, 42, .1); }
.home-tools .calc-card:focus-visible { outline: 3px solid #0062ff; outline-offset: 3px; }

.home-tools .emoji {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 0 20px;
    border-radius: 50%;
    background: #f0f7ff;
    color: #004cca;
    font-size: 1.8rem;
    line-height: 1;
    transition: background-color .3s ease, color .3s ease;
}

.home-tools .calc-card:hover .emoji,
.home-tools .calc-card:focus-visible .emoji { background: #0062ff; color: #fff; }

.home-tools .calc-card h2 {
    margin: 0 0 12px;
    color: #0b1c30;
    font-family: "Hanken Grotesk", Inter, Arial, sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.3;
}

.home-tools .calc-card p { margin: 0; color: #424656; font-size: .95rem; line-height: 1.45; }

@media (max-width: 900px) { .home-tools .calculators-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (max-width: 600px) {
    .home-hero { min-height: 230px; padding: 40px 16px; }
    .home-hero p { margin-top: 16px; }
    .home-tools { padding: 32px 16px; }
    .home-tools .calculators-grid { grid-template-columns: 1fr; gap: 20px; }
    .home-tools .calc-card { min-height: 220px; padding: 24px 20px; }
}
