/* Your existing CSS remains the same */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #f0f4f8;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent: #4299e1;
    --accent-hover: #3182ce;
    --border: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.1);
    --btn-bg: #ffffff;
    --btn-hover: #f7fafc;
    --btn-active: #edf2f7;
    --btn-operator: #4299e1;
    --btn-operator-hover: #3182ce;
    --btn-scientific: #48bb78;
    --btn-scientific-hover: #38a169;
    --display-bg: #edf2f7;
}

body.dark-mode {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-glass: rgba(45, 55, 72, 0.7);
    --text-primary: #f7fafc;
    --text-secondary: #cbd5e0;
    --accent: #63b3ed;
    --accent-hover: #4299e1;
    --border: #4a5568;
    --shadow: rgba(0, 0, 0, 0.3);
    --btn-bg: #2d3748;
    --btn-hover: #4a5568;
    --btn-active: #718096;
    --btn-operator: #4299e1;
    --btn-operator-hover: #63b3ed;
    --btn-scientific: #48bb78;
    --btn-scientific-hover: #68d391;
    --display-bg: #2d3748;
}

body {
    font-family: 'Montserrat';
    background: linear-gradient(to bottom right, #F8F9FA, #E1F5C4);
    color: var(--text-primary);
    min-height: 100vh;

    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 4rem;
}

.calculator {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 450px;
    transition: all 0.3s ease;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.header h1 {
    font-size: 24px;
    color: var(--text-primary);
}

.theme-toggle {
    background: var(--btn-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 20px;
    transition: all 0.2s ease;
}

.theme-toggle:hover {
    background: var(--btn-hover);
    transform: scale(1.05);
}

.display {
    background: var(--display-bg);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.previous-expression {
    color: var(--text-secondary);
    font-size: 14px;
    min-height: 20px;
    text-align: right;
    margin-bottom: 8px;
    word-wrap: break-word;
}

.current-input {
    color: var(--text-primary);
    font-size: 32px;
    font-weight: 600;
    text-align: right;
    min-height: 45px;
    word-wrap: break-word;
}

.memory-indicator {
    color: var(--accent);
    font-size: 12px;
    margin-top: 8px;
    text-align: left;
}

.buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

/* ===== CALCULATOR BUTTON STYLES ===== */
.calculator button {
    background: var(--btn-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 18px;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
}

.calculator button:hover {
    background: var(--btn-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--shadow);
}

.calculator button:active {
    background: var(--btn-active);
    transform: translateY(0);
}

.calculator .operator {
    background: var(--btn-operator);
    color: white;
}

.calculator .operator:hover {
    background: var(--btn-operator-hover);
}

.calculator .scientific {
    background: var(--btn-scientific);
    color: white;
    font-size: 14px;
}

.calculator .scientific:hover {
    background: var(--btn-scientific-hover);
}

.calculator .span-2 {
    grid-column: span 2;
}

.calculator .clear {
    background: #fc8181;
    color: white;
}

.calculator .clear:hover {
    background: #f56565;
}

.calculator .equals {
    background: #48bb78;
    color: white;
}

.calculator .equals:hover {
    background: #38a169;
}

.history-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 8px 32px var(--shadow);
    border: 1px solid var(--border);
    width: 100%;
    max-width: 400px;
    transition: all 0.3s ease;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.history-header h2 {
    font-size: 20px;
    color: var(--text-primary);
}

.history-buttons {
    display: flex;
    gap: 8px;
}

/* ===== NAVIGATION BUTTON STYLES ===== */
/* Keep navigation buttons with their original styles */
.history-btn,
.nav-btn,
.category-btn,
.close-btn {
    background: rgb(52 101 137 / 90%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-btn:hover,
.nav-btn:hover,
.category-btn:hover,
.close-btn:hover {
    background: rgba(38, 34, 34, 0.737);
    transform: none;
    box-shadow: none;
}

.nav-btn.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.history-list {
    max-height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: var(--display-bg);
    border-radius: 4px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.history-item {
    background: var(--display-bg);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.history-item:hover {
    background: var(--btn-hover);
    transform: translateX(5px);
}

.history-expression {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 4px;
}

.history-result {
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 600;
}

.empty-history {
    text-align: center;
    color: var(--text-secondary);
    padding: 40px 20px;
}

/* ===== IMPROVED NAVIGATION SYSTEM ===== */
.navbar {
display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.8rem 1.5rem;
            width: 90%;
            height: 9vh;
            max-width: 1100px;
            margin: 0.5rem auto;
            position: sticky;
            top: 10px;
            z-index: 1000;
            background: #7aacde93;
            backdrop-filter: blur(15px);
            border: 1px solid rgba(255, 255, 255, 0.25);
            border-radius: 1.5rem;
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
            transition: all 0.3s ease;
}

/* Slight hover lift */
.navbar:hover {
transform: translateY(-2px);
box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hamburger {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 2100;
    padding: 8px;
    border-radius: 5px;
    transition: background 0.3s;
}

.hamburger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.hamburger span {
    width: 35px;
    height: 3px;
    background: rgb(0, 0, 0);
    border-radius: 2px;
    transition: all 0.3s ease;
}
/* Hamburger animation when active */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Side Menu */
.calculator-nav {
    position: fixed;
    top: 0;
    right: -400px;
    width: 350px;
    height: 100%;
    background: linear-gradient(135deg, #3c4a59, #34495e);
    padding: 80px 20px 20px 20px;
    overflow-y: auto;
    transition: right 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 1500;
    box-shadow: -4px 0 25px rgba(0, 0, 0, 0.2);
}

.calculator-nav.active {
    right: 0;
}

/* Close button */
.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

/* Category styles */
.nav-category {
    margin-bottom: 10px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.05);
}

.category-btn {
    width: 100%;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.category-btn i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

.category-btn .arrow {
    transition: transform 0.3s ease;
}

.category-btn.active .arrow {
    transform: rotate(180deg);
}

/* Submenu */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}

.submenu.active {
    max-height: 500px;
}

.submenu .nav-btn {
    background: none;
    border: none;
    text-align: left;
    color: #ddd;
    padding: 12px 20px 12px 50px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    width: 100%;
}

.submenu .nav-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding-left: 55px;
}

.nav-btn.active {
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.1);
}

.nav-icon {
    margin-right: 12px;
    width: 20px;
    text-align: center;
}

/* Keep "always-open" category expanded */
.nav-category.always-open .submenu {
    max-height: none !important;
    /* no collapse */
    background: rgba(0, 0, 0, 0.2);
}

.nav-category.always-open .category-btn {
    cursor: default;
    justify-content: flex-start;
}

.nav-category.always-open .arrow {
    display: none;
    /* hide arrow since no toggle */
}

/* Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1200;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

footer {
    background: linear-gradient(135deg, #4b6d91, #3c5774);
    color: #fff;
    text-align: center;
    padding: 40px 20px 20px;
    font-family: Arial, sans-serif;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Social Icons */
.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    text-decoration: none;
    height: 45px;
    margin: 0 8px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    font-size: 20px;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    transform: translateY(-4px);
    background: #7777778f;
    color: #000;
}

/* Footer Links */
.footer-links {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.footer-links a:hover {
    color: #c4c1c1f0;
}

/* Tooltip from data-desc */
.footer-links a::after {
    content: attr(data-desc);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%) scale(0.9);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-links a:hover::after {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    bottom: -35px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    margin-top: 20px;
    padding-top: 15px;
}

.footer-bottom p {
    font-size: 14px;
    opacity: 0.9;
}

.footer-bottom span {
    font-weight: bold;
}

/* Popular Links */
.popular-links a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-links a:hover {
    color: #c4c1c1f0;
    text-decoration: underline;
}

#calculator-summary {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
}

#calculator-summary h2 {
    color: #000000;
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.2em;
    font-weight: 500;
    border-bottom: 3px solid #007BFF;
    padding-bottom: 10px;
}

#calculator-summary h3 {
    color: #28A745;
    margin: 30px 0 15px 0;
    font-size: 1.5em;
    font-weight: 400;
}

.calculator-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.calculator-table th,
.calculator-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.calculator-table th {
    background: #007BFF;
    color: white;
    font-weight: 600;
}

.calculator-table tr:nth-child(even) {
    background: #f8f9fa;
}

.calculator-table tr:hover {
    background: #e3f2fd;
}

.steps-list {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.steps-list ol {
    padding-left: 20px;
    margin: 0;
}

.steps-list li {
    margin: 8px 0;
    font-size: 1.1em;
}

.ideal-for {
    background: #e8f5e8;
    padding: 15px;
    border-left: 5px solid #28A745;
    margin: 15px 0;
    border-radius: 0 5px 5px 0;
}

.why-choose {
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    padding: 25px;
    border-radius: 10px;
    text-align: center;
    margin-top: 40px;
}

.why-choose h3 {
    color: white;
    margin-top: 0;
}

.btn-try {
    display: inline-block;
    background: #28A745;
    color: white;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 25px;
    margin-top: 15px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-try:hover {
    background: #218838;
}

/* Responsive styles */
@media (max-width: 768px) {
    .footer-links {
        gap: 15px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-links a::after {
        display: none;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    #calculator-summary {
        padding: 20px 10px;
    }
    
    #calculator-summary h2 {
        font-size: 1.8em;
    }
    
    .calculator-table {
        font-size: 0.9em;
    }
    
    .calculator-table th,
    .calculator-table td {
        padding: 8px 5px;
    }
}

@media (max-width: 480px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-bottom p {
        font-size: 12px;
    }
}

/* Other responsive styles remain the same */
/* Large Desktop Screens (1400px+) */
@media (min-width: 1400px) {
    .container {
        gap: 30px;
    }
}

/* Tablets and Small Laptops (769px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 100%;
        gap: 15px;
    }

    .calculator {
        max-width: 420px;
    }

    .history-panel {
        max-width: 380px;
    }

    .history-list {
        max-height: 500px;
    }
}

/* Tablet Portrait & Large Mobile (601px - 768px) */
@media (max-width: 768px) {


    .container {
        flex-direction: column;
        gap: 15px;
    }

    .calculator,
    .history-panel {
        max-width: 100%;
        padding: 25px;
    }

    .header h1 {
        font-size: 22px;
    }

    .display {
        padding: 18px;
    }

    .current-input {
        font-size: 28px;
    }

    .buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }

    .calculator button {
        padding: 16px;
        font-size: 16px;
        border-radius: 10px;
        min-height: 55px;
    }

    .calculator .scientific {
        font-size: 13px;
        padding: 14px;
    }

    .history-list {
        max-height: 400px;
    }

    .history-header h2 {
        font-size: 18px;
    }
    .navbar {
        padding: 1rem;
    }

    .calculator-nav {
        width: 300px;
        right: -300px;
    }


    .submenu .nav-btn {
        padding: 10px 15px 10px 45px;
    }

    .submenu .nav-btn:hover {
        padding-left: 50px;
    }
}

/* Mobile Landscape & Medium Phones (481px - 600px) */
@media (max-width: 600px) {

    .calculator,
    .history-panel {
        padding: 20px;
        border-radius: 20px;
    }

    .header h1 {
        font-size: 20px;
    }

    .theme-toggle {
        padding: 6px 12px;
        font-size: 18px;
    }

    .display {
        padding: 15px;
        border-radius: 14px;
    }

    .previous-expression {
        font-size: 12px;
    }

    .current-input {
        font-size: 24px;
        min-height: 35px;
    }

    .memory-indicator {
        font-size: 11px;
    }

    .buttons {
        gap: 6px;
    }

    .calculator button {
        padding: 14px;
        font-size: 15px;
        border-radius: 8px;
        min-height: 50px;
    }

    .calculator .scientific {
        font-size: 11px;
        padding: 12px;
    }

    .history-list {
        max-height: 350px;
    }

    .history-item {
        padding: 10px;
    }

    .history-expression {
        font-size: 12px;
    }

    .history-result {
        font-size: 16px;
    }
}

/* Small Mobile Phones (320px - 480px) */
@media (max-width: 480px) {

    .calculator,
    .history-panel {
        padding: 15px;
        border-radius: 16px;
    }

    .header {
        margin-bottom: 15px;
    }

    .header h1 {
        font-size: 18px;
    }

    .theme-toggle {
        padding: 5px 10px;
        font-size: 16px;
        border-radius: 8px;
    }

    .display {
        padding: 12px;
        margin-bottom: 15px;
        border-radius: 12px;
    }

    .previous-expression {
        font-size: 11px;
        min-height: 16px;
    }

    .current-input {
        font-size: 20px;
        min-height: 30px;
    }

    .memory-indicator {
        font-size: 10px;
        margin-top: 6px;
    }

    .buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }

    .calculator button {
        padding: 10px 6px;
        font-size: 14px;
        border-radius: 8px;
        min-height: 45px;
    }

    .calculator .scientific {
        font-size: 10px;
        padding: 8px 4px;
    }

    .calculator .span-2 {
        grid-column: span 2;
    }

    .history-panel {
        padding: 15px;
    }

    .history-header {
        margin-bottom: 15px;
        flex-wrap: wrap;
        gap: 10px;
    }

    .history-header h2 {
        font-size: 16px;
        width: 100%;
    }

    .history-buttons {
        width: 100%;
        justify-content: space-between;
    }

    .history-btn {
        flex: 1;
        padding: 8px;
        font-size: 12px;
    }

    .history-list {
        max-height: 300px;
    }

    .history-item {
        padding: 8px;
        border-radius: 10px;
    }

    .history-expression {
        font-size: 11px;
    }

    .history-result {
        font-size: 14px;
    }

    .empty-history {
        padding: 30px 15px;
        font-size: 14px;
    }
    .calculator-nav {
        width: 280px;
        right: -280px;
        padding: 70px 15px 15px 15px;
    }
}

/* Extra Small Screens (max 360px) */
@media (max-width: 360px) {
    .header h1 {
        font-size: 16px;
    }

    .current-input {
        font-size: 18px;
    }

    .buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
    }

    .calculator button {
        padding: 8px 4px;
        font-size: 12px;
        min-height: 40px;
    }

    .calculator .scientific {
        font-size: 9px;
        padding: 6px 2px;
    }

    .calculator .span-2 {
        grid-column: span 2;
    }

    .history-result {
        font-size: 13px;
    }
}

/* Super Small Screens (max 320px) */
@media (max-width: 320px) {


    .calculator,
    .history-panel {
        padding: 12px;
        border-radius: 14px;
    }

    .buttons {
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }

    .calculator button {
        padding: 6px 2px;
        font-size: 11px;
        min-height: 35px;
        border-radius: 6px;
    }

    .calculator .scientific {
        font-size: 8px;
        padding: 4px 1px;
    }

    .display {
        padding: 10px;
    }

    .current-input {
        font-size: 16px;
    }
}

/* Prevent hover effects on touch devices */
@media (hover: none) {
    .calculator button:hover {
        transform: none;
        background: var(--btn-bg);
    }

    .calculator button:active {
        background: var(--btn-active);
    }

    .theme-toggle:hover {
        transform: none;
    }

    .history-item:hover {
        transform: none;
    }

    .calculator .operator:hover {
        background: var(--btn-operator);
    }

    .calculator .scientific:hover {
        background: var(--btn-scientific);
    }

    .calculator .clear:hover {
        background: #fc8181;
    }

    .calculator .equals:hover {
        background: #48bb78;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 900px) and (orientation: landscape) {


    .container {
        flex-direction: row;
        align-items: flex-start;
    }

    .calculator,
    .history-panel {
        flex: 1;
        min-width: 0;
    }

    .history-list {
        max-height: 200px;
    }

    .buttons {
        gap: 6px;
    }

    .calculator button {
        padding: 8px;
        font-size: 14px;
        min-height: 45px;
    }

    .calculator .scientific {
        font-size: 11px;
        padding: 6px;
    }
}

/* Very small landscape */
@media (max-width: 700px) and (orientation: landscape) {
    .calculator {
        max-width: 100%;
    }
    
    .buttons {
        gap: 4px;
    }
    
    .calculator button {
        padding: 6px;
        font-size: 12px;
        min-height: 40px;
    }
    
    .calculator .scientific {
        font-size: 10px;
        padding: 4px;
    }
}
/* ===== CALCULATOR HEADER ===== */
.calculator-header {
    text-align: center;
    margin: 1.5rem auto 2rem;
    padding: 0 1rem;
    max-width: 1700px;
}

.calculator-title {
    font-size: clamp(1.6rem, 2.2vw + 1rem, 2.3rem);
    font-weight: 600;
    color: #0e0e0e;
    margin-bottom: 0.6rem;
    line-height: 1.3;
    letter-spacing: 0.3px;
}

.calculator-subtitle {
    font-size: clamp(1rem, 1.2vw + 0.5rem, 1.1rem);
    color: #555;
    font-style: italic;
    line-height: 1.5;
}

/* 🔹 Responsive Adjustments */
@media (max-width: 480px) {
.calculator-header {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    padding: 0 0.8rem;
}

.calculator-title {
    font-size: 1.5rem;
}

.calculator-subtitle {
    font-size: 0.95rem;
}
}