/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(to right, #1e3c72, #2a5298);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 70px 0 20px 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(30, 60, 114, 0.95);
    padding: 12px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
}

.nav-logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 2px;
    border-bottom: 2px solid transparent;
}

.nav-links a:hover {
    color: white;
    border-bottom: 2px solid rgba(255, 107, 53, 0.5);
}

.nav-links a.active {
    color: white;
    border-bottom: 2px solid #ff6b35;
}

.blog-count {
    background: #ff6b35;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

/*Tools Drop down*/
.dropdown {
    position: relative;
}

.dropdown-toggle {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.3s ease;
    padding-bottom: 2px;
}

.dropdown-toggle:hover {
    color: white;
    border-bottom: 2px solid rgba(255, 107, 53, 0.5);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 40px;
    left: auto;
    right: 10px;
    transform: none;
    background: white;
    border-radius: 8px;
    padding: 8px 0;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 200;
}

.dropdown-menu a {
    display: block;
    padding: 10px 15px;
    color: rgba(30, 60, 114, 0.95) !important;
    font-size: 14px !important;
    border-bottom: none !important;
    transition: 0.2s;
}

.dropdown-menu a:hover {
    background: #ff6b35;
    color: white !important;
}

.dropdown:hover .dropdown-menu {
    display: block;
}



/* Logo colors */
.logo-calc {
    color: #ff6b35;
}

.logo-labz {
    color: white;
}

/* Hamburger */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: auto;
    padding: 5px;
    margin: 0;
    flex-direction: column;
    gap: 5px;
    transition: 0.3s;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: 0.3s ease;
}

/* Hover effect */
.hamburger:hover span {
    background: #ff6b35;
}

.hamburger:hover span:nth-child(1) {
    transform: translateX(4px);
}

.hamburger:hover span:nth-child(3) {
    transform: translateX(-4px);
}

/* Open state - X shape */
.hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
    background: #ff6b35;
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
    background: #ff6b35;
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .hamburger {
        display: flex;
    }

    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(253, 254, 255, 0.98);
        border-radius: 6px;
        box-shadow: none;
        padding: 5px 0;
        width: 100%;
    }

    .dropdown-menu a {
        padding-left: 35px !important;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 55px;
        left: 0;
        width: 100%;
        background: rgba(30, 60, 114, 0.98);
        flex-direction: column;
        padding: 15px 0;
        gap: 0;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 25px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* toollink */

.link {
    text-decoration: none;
}

.tool_link {
    display: inline-block;
    text-align: center;
    width: 100%;
    font-size: 23px;
    font-weight: bold;
    text-decoration: none;
    padding: 0px 12px 0px 12px;

    background: linear-gradient(90deg,
            #ff6b35 0%,
            #1d1fa1 40%,
            #3700ff 50%,
            #1d1fa1 40%,
            #ff6b35 100%);

    background-size: 200% auto;

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    will-change: background-position;

    animation: shineText 2S linear infinite;
}




@keyframes shineText {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: -200% center;
    }
}

/* Heading */
h1 {
    font-weight: 600;
    color: #1e3c72;
    margin-bottom: 5px;
}

/* Subtitle */
.subtitle {
    color: #666;
    font-size: 13px;
    margin-bottom: 20px;
    margin-top: -10px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 20px 0 10px 0;
    width: 420px;
    max-width: 90%;
}

.hero h2 {
    color: #ff6b35;
    font-size: 30px;
    margin-bottom: 40px;
    font-weight: 700;
}

.hero p {
    color: rgba(255, 255, 255, .9);
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

/* Card container */
.container {
    background: #f3f3f3;
    margin-top: 80px;
    padding: 30px 25px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 700px;
    width: 90%;
    text-align: center;
}

/* Form Groups */
.form-group {
    margin-bottom: 15px;
    text-align: left;
}

/* Labels */
label {
    display: block;
    text-align: left;
    font-weight: 600;
    margin-bottom: 5px;
    color: #333;
}

/* Inputs & Selects */
input,
select {
    width: 100%;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 1.2;
    outline: none;
    transition: 0.2s;
    margin-bottom: 0;
}

input:focus,
select:focus {
    border-color: #1e3c72;
    box-shadow: 0 0 5px rgba(30, 60, 114, 0.5);
}

.hint {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    display: block;
}

/* Button */
button {
    background: #2a5298;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    transition: 0.2s;
    margin-top: 5px;
}

button:hover {
    background: #1e3c72;
}

.toggle-group {
    display: flex;
    gap: 8px;
}

.toggle-btn {
    flex: 1;
    padding: 8px;
    background: #fff;
    color: #2a5298;
    border: 2px solid #2a5298;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: auto;
    margin-top: 0;
}

.toggle-btn.active {
    background: #2a5298;
    color: white;
}

.toggle-btn:hover {
    background: #2a5298;
    color: white;
}

/* Result box */
.result-box {
    margin-top: 20px;
    background: #e8f0fe;
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #2a5298;
}

.result-box.hidden {
    display: none;
}

.result-label {
    font-size: 12px;
    color: #666;
    margin: 0 0 5px 0;
}

#result {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #1e3c72;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.rpm-info {
    font-size: 12px;
    color: #888;
    margin: 5px 0 0 0;
}

/* Tools asection */
.tools-section {
    max-width: 700px;
    width: 90%;
    margin: 20px auto;
}

.tools-section h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.tools-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
    transition: 0.2s;
}

.tools-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tools-tag {
    background: #ff6b35;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.tools-card h3 {
    color: white;
    font-size: 15px;
    margin: 10px 0 8px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.tools-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.tools-card a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.tools-card a:hover {
    color: white;
}


/* Blog Section */
.blog-section {
    max-width: 700px;
    width: 90%;
    margin: 20px auto;
}

.blog-section h2 {
    color: white;
    font-size: 18px;
    margin-bottom: 15px;
    text-align: center;
}

.blog-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
    transition: 0.2s;
}

.blog-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.blog-tag {
    background: #ff6b35;
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
}

.blog-card h3 {
    color: white;
    font-size: 15px;
    margin: 10px 0 8px 0;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
}

.blog-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

.blog-card a {
    color: #ff6b35;
    text-decoration: none;
    font-size: 14px;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.blog-card a:hover {
    color: white;
}

/* FAQ Section */
.faq-container {
    max-width: 700px;
    width: 90%;
    margin: 20px auto 40px;
}

.faq-container h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: white;
    text-align: center;
}

.faq-item {
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: none;
    padding: 14px 16px;
    text-align: left;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.2s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.25);
}

.faq-icon {
    font-size: 20px;
    font-weight: 300;
    transition: transform 0.3s;
}

.faq-answer {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 10px 20px;
}

.faq-answer.closed {
    max-height: 0;
    padding: 0 20px;
}

.faq-answer p {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-family: 'JetBrains Mono', monospace;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* About Content */
.about-content {
    text-align: left;
    margin-top: 15px;
    line-height: 1.8;
    color: #333;
    font-size: 13px;
}

.about-content h2 {
    color: #1e3c72;
    font-size: 15px;
    margin-top: 20px;
}

.about-content a {
    color: #2a5298;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.back-link:hover {
    color: #1e3c72;
}

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    padding: 20px 0;
    text-align: center;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin: 0 5px;
}

.site-footer a:hover {
    color: white;
}

/* Responsive */
@media (max-width: 400px) {
    .container {
        padding: 20px 15px;
        width: 95%;
    }
}