* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #f8f9fa;
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

}

/* Header */
.site-header {
    background-color: transparent;
    /* background: linear-gradient(135deg, #1a252f, #2c3e50); */
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 30px;
}

.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;
    position: relative;
    top: -3px;
}

@keyframes animate-gradient {
    to {
        background-position: 200%;
    }
}

.logo a {
    text-decoration: none;
    color: white;
}

.nav-links a {
    color: rgba(64, 64, 64, 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: #000000;
}

nav a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #000000;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

@media (min-width: 350px) and (max-width:390px) {
    .nav-links a {
        margin: 0 0 0 10px;
    }

    .site-header {
        padding: 5px 10px;
    }
}

@media (min-width: 300px) and (max-width:350px) {
    .nav-links a {
        font-size: small;
        margin: 0 0 0 10px;
    }

    .logo {
        gap: 0;
    }

    .logo a span {
        font-size: 1.2rem;
        position: relative;
        top: -5px;
    }

    .site-header {
        padding: 5px 10px;
    }
}


.container {
    max-width: 800px;
    width: 100%;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.calculator {
    padding: 30px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    font-size: 2rem;
    color: #2c7be5;
    margin-bottom: 10px;
}

.shape-selector {
    margin-bottom: 25px;
}

.shape-selector h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c7be5;
}

.shapes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.shape-card {
    background: #f0f6ff;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1 1 calc(33% - 10px);
    min-width: 80px;
}

.shape-card:hover {
    background: #e0ecff;
}

.shape-card.active {
    background: #2c7be5;
    color: white;
}

.shape-card.active i {
    color: white;
}

.shape-card i {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #2c7be5;
}

.shape-card p {
    font-size: 0.9rem;
}

.input-section {
    margin-bottom: 25px;
}

.input-section h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c7be5;
}

.input-group {
    margin-bottom: 15px;
}

.input-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
}

.input-group input {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #2c7be5;
    box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.1);
}

.results {
    background: #f0f6ff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.results h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #2c7be5;
}

.result-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.result-label {
    font-weight: 500;
    color: #555;
}

.result-value {
    font-weight: 600;
    color: #2c7be5;
}

.calculate-btn {
    width: 100%;
    padding: 12px;
    background: #2c7be5;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.calculate-btn:hover {
    background: #1a68d1;
}

.hidden {
    display: none;
}

.shape-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.shape-info h2 {
    font-size: 1.4rem;
    color: #2c7be5;
    margin-bottom: 10px;
}

.shape-info p {
    margin-bottom: 10px;
    line-height: 1.5;
    color: #555;
}

.formula {
    background: #e0ecff;
    padding: 10px;
    margin: 10px 0;
    border-radius: 6px;
    font-family: monospace;
    color: #2c7be5;
}

@media (max-width: 600px) {
    .shape-card {
        flex: 1 1 calc(50% - 10px);
    }
}

.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;
    margin-bottom: 10px;
}

.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 {
    text-align: center;
    margin: 20px;
}

footer p a {
    text-decoration: none;
    font-weight: bold;
    color: #aa00ff;
}