/* --- Basic Setup & CSS Variables --- */ :root { --bg-dark: #121828; --bg-light: #1b2133; --primary-accent: #00f5c3; --text-light: #edf2f7; --text-medium: #a0aec0; --text-dark: #121828; --border-color: #2d3748; --success-color: #48bb78; --error-color: #f56565; --font-family: 'Poppins', sans-serif; } * { margin: 0; padding: 0; box-sizing: border-box; } html { scroll-behavior: smooth; } body { font-family: var(--font-family); background-color: var(--bg-dark); color: var(--text-light); line-height: 1.6; } .container { width: 90%; max-width: 1200px; margin: 0 auto; } a { text-decoration: none; color: var(--primary-accent); transition: color 0.3s ease; } a:hover { color: var(--text-light); } h1, h2, h3 { font-weight: 600; line-height: 1.2; margin-bottom: 1rem; } h1 { font-size: clamp(2.5rem, 5vw, 4rem); } h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; } h3 { font-size: 1.5rem; } /* --- Sidebar & Hamburger Menu --- */ #menu-toggle { display: none; /* Hidden by default on desktop */ background: none; border: none; color: var(--text-light); font-size: 1.5rem; cursor: pointer; z-index: 1001; /* Above the header background */ } #sidebar { position: fixed; top: 0; left: 0; width: 280px; height: 100%; background: var(--bg-light); z-index: 2000; padding: 2rem; display: flex; flex-direction: column; transform: translateX(-100%); transition: transform 0.4s ease-in-out; border-right: 1px solid var(--border-color); } #sidebar.active { transform: translateX(0); } .sidebar-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1rem; margin-bottom: 2rem; } #close-sidebar { background: none; border: none; color: var(--text-medium); font-size: 2rem; cursor: pointer; transition: color 0.3s; } #close-sidebar:hover { color: var(--primary-accent); } .sidebar-nav ul { list-style: none; } .sidebar-nav li a { display: block; color: var(--text-light); font-size: 1.1rem; font-weight: 600; padding: 1rem 0; transition: color 0.3s ease; } .sidebar-nav li a:hover { color: var(--primary-accent); } #overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease-in-out; } #overlay.active { opacity: 1; pointer-events: auto; } /* --- Header & Navigation --- */ header { background: rgba(18, 24, 40, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border-color); padding: 1.5rem 0; /* Increased padding */ position: fixed; width: 100%; top: 0; z-index: 1000; } nav { display: flex; justify-content: flex-start; /* Changed from space-between */ align-items: center; } .logo { font-size: 1.5rem; font-weight: 700; color: var(--text-light); } /* --- Hero Section & Calculator --- */ #hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 120px; padding-bottom: 60px; text-align: center; background: linear-gradient(rgba(18, 24, 40, 0.9), rgba(18, 24, 40, 1)), url('https://www.transparenttextures.com/patterns/cubes.png'); } .hero-content { max-width: 800px; } .subtitle { font-size: 1.2rem; color: var(--text-medium); margin-bottom: 2.5rem; } .calculator-wrapper { background: var(--bg-light); padding: 2.5rem; border-radius: 15px; border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); text-align: left; margin: 0 auto; } .form-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } .form-group label { font-size: 0.9rem; color: var(--text-medium); margin-bottom: 0.5rem; } .form-group input[type="number"] { background: var(--bg-dark); border: 1px solid var(--border-color); color: var(--text-light); padding: 0.75rem; border-radius: 8px; font-size: 1.1rem; font-weight: 600; width: 100%; } .form-group input[type="number"]:focus { outline: none; border-color: var(--primary-accent); box-shadow: 0 0 0 3px rgba(0, 245, 195, 0.2); } input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; background: var(--bg-dark); border-radius: 5px; outline: none; margin-top: 1rem; } input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; background: var(--primary-accent); cursor: pointer; border-radius: 50%; border: 3px solid var(--bg-light); } input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; background: var(--primary-accent); cursor: pointer; border-radius: 50%; } .cta-button { background: var(--primary-accent); color: var(--text-dark); border: none; padding: 1rem 2rem; font-size: 1.1rem; font-weight: 700; width: 100%; border-radius: 8px; cursor: pointer; margin-top: 2rem; transition: all 0.3s ease; } .cta-button:hover { transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 245, 195, 0.2); } .advanced-options { display: flex; align-items: center; gap: 10px; margin-top: 1.5rem; color: var(--text-medium); font-size: 0.9rem; } .switch { position: relative; display: inline-block; width: 40px; height: 22px; } .switch input { opacity: 0; width: 0; height: 0; } .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 22px;} .slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: white; transition: .4s; border-radius: 50%;} input:checked + .slider { background-color: var(--primary-accent); } input:checked + .slider:before { transform: translateX(18px); } .advanced-fields { max-height: 0; overflow: hidden; transition: max-height 0.5s ease-out; margin-top: 0; } .advanced-fields.active { max-height: 200px; margin-top: 1.5rem; } /* --- Result Container & Chart --- */ #result-container { margin-top: 2.5rem; padding: 1.5rem; background: var(--bg-dark); border-radius: 8px; transition: all 0.5s ease; opacity: 0; transform: translateY(20px); /* Grid layout for results and chart */ display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; } #result-container:not(.hidden) { opacity: 1; transform: translateY(0); } .hidden { display: none !important; } .result-details h3 { color: var(--primary-accent); margin-bottom: 1.5rem; text-align: left; } .result-item { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border-color); } .result-item:last-child { border-bottom: none; } .result-item span { color: var(--text-medium); } .result-item strong { font-size: 1.2rem; } .result-item.total strong { color: var(--primary-accent); font-size: 1.5rem; font-weight: 700; } .result-item.inflation-adjusted { border-top: 2px dashed var(--border-color); margin-top: 1rem; padding-top: 1rem; } .result-item.inflation-adjusted.hidden { display: none; } .result-item.inflation-adjusted strong { color: var(--success-color); } .chart-container { position: relative; height: 280px; width: 100%; } /* --- Other Sections --- */ #how-it-works { padding: 6rem 0; } #how-it-works article { max-width: 800px; margin: 2rem auto 0 auto; background: var(--bg-light); padding: 2rem; border-radius: 10px; border: 1px solid var(--border-color); } #how-it-works p, #how-it-works ul { margin-bottom: 1rem; color: var(--text-medium); } #how-it-works ul { list-style-position: inside; padding-left: 1rem; } #how-it-works li { margin-bottom: 0.5rem; } .formula-box { background: var(--bg-dark); padding: 1.5rem; border-radius: 8px; text-align: center; margin: 1.5rem 0; border: 1px dashed var(--primary-accent); } .formula-box code { font-size: 1.2rem; color: var(--text-light); } #other-calculators { padding: 6rem 0; background-color: var(--bg-light); } .calculator-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; margin-top: 3rem; } .calculator-card { background: var(--bg-dark); padding: 2rem; border-radius: 10px; border: 1px solid var(--border-color); transition: all 0.3s ease; color: var(--text-light); } .calculator-card:hover { transform: translateY(-10px); border-color: var(--primary-accent); box-shadow: 0 10px 20px rgba(0, 245, 195, 0.1); } .calculator-card i { font-size: 2.5rem; color: var(--primary-accent); margin-bottom: 1rem; } .calculator-card h3 { color: var(--text-light); margin-bottom: 0.5rem; } .calculator-card p { color: var(--text-medium); font-size: 0.9rem; } /* --- Footer --- */ footer { background: var(--bg-dark); padding: 4rem 0 2rem 0; border-top: 1px solid var(--border-color); } .footer-content { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; } .footer-about p { color: var(--text-medium); margin-top: 1rem; max-width: 350px; } .footer-links ul { list-style: none; } .footer-links li { margin-bottom: 0.5rem; } .footer-links a, .footer-social a { color: var(--text-medium); } .footer-links a:hover, .footer-social a:hover { color: var(--primary-accent); } .footer-social a { font-size: 1.5rem; margin-right: 1rem; } .footer-bottom { text-align: center; padding-top: 2rem; border-top: 1px solid var(--border-color); color: var(--text-medium); font-size: 0.9rem; } /* --- Responsiveness --- */ @media (max-width: 992px) { #menu-toggle { display: block; /* Show hamburger on tablets and mobile */ } nav { justify-content: space-between; /* Make space for the hamburger */ } .form-grid { grid-template-columns: 1fr; } #result-container { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr; text-align: center; } .footer-about p { margin: 1rem auto; } } @media (max-width: 768px) { h1 { font-size: 2.5rem; } h2 { font-size: 1.8rem; } #hero { min-height: auto; padding: 120px 0 60px 0; } .calculator-wrapper { padding: 1.5rem; } #how-it-works, #other-calculators { padding: 4rem 0; } .chart-container { height: 250px; } /* Adjust chart height for mobile */ }