* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3498db;
    --secondary: #2980b9;
    --accent: #e74c3c;
    --dark: #2c3e50;
    --darker: #1a252f;
    --light: #ffffff;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --card-bg: rgba(255, 255, 255, 0.1);
    --glow: 0 0 15px rgba(52, 152, 219, 0.5);
}

body {
    background: linear-gradient(135deg, var(--darker), var(--dark));
    color: var(--light);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 10% 20%, rgba(52, 152, 219, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(41, 128, 185, 0.1) 0%, transparent 20%);
    z-index: -1;
}




/* Header */
.site-header {
    background-color: linear-gradient(135deg,  #1a252f, #2c3e50);
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
}

.logo img {
    height: 40px;
    margin-right: 10px;
    object-fit: cover;
    position: relative;
    top: 2px;
    filter: drop-shadow(0 0 3px rgb(255, 255, 255));
}

.logo a span {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: bolder;
    background: linear-gradient(to right, #aa00ff, #0015ff, #1b9400, #ffae00, #ff0000, #ffae00, #1b9400, #0015ff, #aa00ff);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-left: 20px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ffffff;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--light);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

@media (min-width: 300px) and (max-width:350px) {
    .nav-links a {
        font-size: small;
        margin: 0 0 0 10px;
    }

    .site-header {
        padding: 5px 10px;
    }
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/*header {*/
/*    display: flex;*/
/*    justify-content: space-between;*/
/*    align-items: center;*/
/*    padding: 1.5rem 0;*/
/*    border-bottom: 1px solid rgba(255, 255, 255, 0.1);*/
/*    margin-bottom: 2.5rem;*/
/*}*/

/*.logo {*/
/*    display: flex;*/
/*    align-items: center;*/
/*    gap: 0.75rem;*/
/*    font-family: 'Orbitron', sans-serif;*/
/*    font-size: 1.8rem;*/
/*    font-weight: 700;*/
/*    color: var(--light);*/
/*    text-decoration: none;*/
/*}*/

/*.logo i {*/
/*    color: var(--light);*/
/*    text-shadow: 0 0 10px var(--light);*/
/*}*/

/*.logo span {*/
/*    background: linear-gradient(90deg, var(--primary), var(--light));*/
/*    -webkit-background-clip: text;*/
/*    background-clip: text;*/
/*    -webkit-text-fill-color: transparent;*/
/*}*/

/*nav ul {*/
/*    display: flex;*/
/*    list-style: none;*/
/*    gap: 2rem;*/
/*}*/

/*nav a {*/
/*    color: rgba(255, 255, 255, 0.7);*/
/*    text-decoration: none;*/
/*    font-weight: 500;*/
/*    transition: all 0.3s ease;*/
/*    position: relative;*/
/*}*/

/*nav a:hover {*/
/*    color: var(--light);*/
/*}*/

/*nav a::after {*/
/*    content: "";*/
/*    position: absolute;*/
/*    bottom: -5px;*/
/*    left: 0;*/
/*    width: 0;*/
/*    height: 2px;*/
/*    background: var(--light);*/
/*    transition: width 0.3s ease;*/
/*}*/

/*nav a:hover::after {*/
/*    width: 100%;*/
/*}*/

.hero {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-family: 'Orbitron', sans-serif;
    background: linear-gradient(90deg, var(--primary), var(--light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 2rem;
}

.input-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 0 auto 3rem;
    max-width: 700px;
    box-shadow: var(--glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.input-group {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.input-group input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-size: 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.btn {
    padding: 1rem 2rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--primary), var(--light));
    color: var(--dark);
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.result-container {
    display: none;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    margin: 0 auto 3rem;
    max-width: 1000px;
    box-shadow: var(--glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.result-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--light);
}

.factors-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.factor-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    min-width: 80px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.factor-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--light));
}

.factor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.prime {
    background: rgba(46, 204, 113, 0.1);
    color: var(--success);
}

.prime::before {
    background: var(--success);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--light);
}

.info-card p {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
}

.chart-container {
    height: 200px;
    margin-top: 2rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    color: rgba(255, 255, 255, 0.6);
}

.error {
    color: var(--danger);
    margin-top: 1rem;
    text-align: center;
    font-weight: 500;
    display: none;
}

.loading {
    display: none;
    text-align: center;
    margin: 2rem 0;
}

.spinner {
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top: 4px solid var(--light);
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .input-group {
        flex-direction: column;
    }

    .input-card,
    .result-container {
        padding: 1.5rem;
    }

    nav ul {
        display: none;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(52, 152, 219, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
    }
}


.seo-section {
  max-width: 960px;
  margin: 40px auto;
  padding: 30px 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  line-height: 1.8;
  font-size: 1rem;
  color: #212529;
}

.seo-section h2 {
  font-size: 1.8rem;
  color: #4361ee;
  margin-bottom: 20px;
  border-bottom: 2px solid #4361ee;
  padding-bottom: 10px;
}

.seo-section h3 {
  font-size: 1.4rem;
  margin-top: 30px;
  margin-bottom: 15px;
  color: #3f37c9;
}

.seo-section p {
  margin-bottom: 15px;
}

.seo-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ul li {
  margin-bottom: 10px;
}

.seo-section ol {
  list-style: decimal;
  padding-left: 20px;
  margin-bottom: 20px;
}

.seo-section ol li {
  margin-bottom: 10px;
}

.seo-section strong {
  color: #4361ee;
}

.seo-section a {
  color: #3f37c9;
  text-decoration: underline;
}

.seo-section a:hover {
  text-decoration: none;
}

footer p a {
    color: #f39c12;
    text-decoration: none;
    font-weight: bold;
}
footer p {
    margin: 0 40px 0 40px ;
}