body {
    background-color: #f1f2f6;
    font-family: 'Inter', sans-serif;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:hover {
    border: none;
}

.navbar-toggler:active {
    border: none;
}

.r-link {
    font-size: 18px;
    text-decoration: none;

}

.nav-link {
    color: white;
}

.main-color {
    background-color: #4f46e5;
}

.math-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;

    background-color: #4f46e5;
    color: #ffffff;
    font-weight: 500;

    padding: 0.75rem 1rem;
    border-radius: 0.375rem;

    text-decoration: none;
    border: none;

    transition: background-color 0.3s ease;
}

.math-menu-btn:hover {
    background-color: #4338ca;
}

.math-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 0.5rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
}


@media (min-width: 640px) {
    .math-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .math-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (min-width: 1024px) {
    .math-grid {
        grid-template-columns: repeat(6, 1fr);
    }

}

@media (max-width: 1024px) {
    .math-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .gega-tool {
        min-width: 80%;
    }
}

@media (max-width: 900px) {
    .gega-tool {
        min-width: 100%;
    }
}

.hero {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: white;
    padding: 80px 20px;
}

.hero h1 {
    font-weight: 700;
}

.tool-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.tool-card {
    border: none;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tool-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.tool-card:hover::before {
    opacity: 0.06;
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(13, 110, 253, 0.25);
}

.tool-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.tool-card .card-body {
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.tool-card h5 {
    font-weight: 600;
}

.tool-card p {
    color: #6c757d;
    font-size: 0.95rem;
}

.tool-card .btn {
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
}

.about-hero {
    background: linear-gradient(135deg, #0d6efd, #6610f2);
    color: #fff;
    padding: 80px 20px;
}

.about-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.calculator {
    width: 380px;
    background: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .15);
}

.display {
    background: #f1f3f5;
    color: #0d6efd;
    font-size: 2rem;
    padding: 15px;
    border-radius: 12px;
    text-align: right;
    margin-bottom: 10px;
    overflow-x: auto;
}

.mode {
    font-size: 0.9rem;
    text-align: right;
    margin-bottom: 10px;
}

.btn-calc {
    height: 55px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-func {
    background: #e9ecef;
    color: #0d6efd;
}

.btn-func:hover {
    background: #0d6efd;
    color: #fff;
}

.btn-op {
    background: #0d6efd;
    color: #fff;
}

.btn-op:hover {
    background: #0b5ed7;
}

.btn-eq {
    background: linear-gradient(135deg, #0d6efd, #4dabf7);
    color: #fff;
}

.nice-tabs {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nice-tabs .nav-link {
    color: #6c757d;
    border: none;
    border-radius: 10px;
    padding: 0.6rem 1.2rem;
    transition: all 0.3s ease;
}

.nice-tabs .nav-link.active {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 4px 10px rgba(13, 110, 253, 0.4);
}

.nice-tabs .nav-link i {
    margin-right: 6px;
}

.gega-tool {
    max-width: 80%;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 5px;

}

.gega-sp {
    font-size: 48px;
    text-align: center;
    display: block;
}

.category-box {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    font-family: Arial, sans-serif;
}

.category-header {
    background: linear-gradient(125deg, #0d6efd, #6610f2);
    color: white;
    padding: 10px;
    font-weight: bold;
    font-size: 16px;
}

.category-content {
    background-color: #f9f9f9;
    padding: 10px;
}

.category-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-content li {
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}

.category-content li:last-child {
    border-bottom: none;
}
main{
    background-color:white;
}
.gega-footer{
    background: linear-gradient(125deg, #0d6efd, #6610f2);
    color:white;
}