/* ======================== RESET & BASE STYLES ======================== */
:root {
    /* Main Colors */
    --bg-primary: #0a0b1a;
    --bg-secondary: #141530;
    --accent-primary: #00e5ff;
    --accent-secondary: #bf00ff;
    --text-primary: #ffffff;
    --text-secondary: #b8b9cc;
    --card-bg: rgba(20, 21, 48, 0.7);
    
    /* Other Colors */
    --success: #36f1cd;
    --warning: #ffcc00;
    --error: #ff3366;
    --dark-overlay: rgba(10, 11, 26, 0.85);
    
    /* Typography */
    --font-main: 'Poppins', sans-serif;
    --font-accent: 'Orbitron', sans-serif;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 2rem;
    
    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 15px 25px rgba(0, 0, 0, 0.3);
    --glow-primary: 0 0 20px rgba(0, 229, 255, 0.5);
    --glow-secondary: 0 0 20px rgba(191, 0, 255, 0.5);
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-accent);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: var(--spacing-sm);
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
}

section {
    padding: var(--spacing-md) var(--spacing-md);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    font-size: 1.1rem;
}

/* ======================== UTILITY CLASSES ======================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.gradient-text {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hidden {
    display: none !important;
}

.button-primary {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-primary);
    font-weight: 600;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.button-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-primary);
}

.button-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.button-primary:hover::before {
    opacity: 1;
}

.button-secondary {
    display: inline-block;
    background: transparent;
    color: var(--text-primary);
    font-weight: 600;
    padding: 0.7rem 1.8rem;
    border-radius: var(--radius-md);
    border: 2px solid var(--accent-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-family: var(--font-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.button-secondary:hover {
    background-color: rgba(0, 229, 255, 0.1);
    box-shadow: var(--glow-primary);
    transform: translateY(-3px);
}

.glow-on-hover {
    position: relative;
}

.glow-on-hover::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    transition: width 0.3s ease;
}

.glow-on-hover:hover::after {
    width: 100%;
}

.glow-on-hover:hover {
    text-shadow: 0 0 8px rgba(0, 229, 255, 0.7);
}

/* ======================== HEADER & NAVIGATION ======================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: var(--spacing-sm) var(--spacing-md);
    z-index: 1000;
    background-color: rgba(10, 11, 26, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* ======================== HERO SECTION ======================== */
/* 
NOTE: Spacing adjustments for the Hero section:
- To adjust SPACE ABOVE the hero (below the fixed header), change "margin-top: 100px" below.
  - Increase/decrease this value (e.g., 120px or 80px) to shift the hero up or down.
  - Beware: Too small a value (<60px) may cause overlap with the fixed header.
- To adjust SPACE BELOW the hero (before the next section), change "margin-bottom: 0" below.
  - Increase this (e.g., 60px) to add space; negative values (e.g., -20px) reduce it.
- To adjust INTERNAL padding (space inside the section), modify "padding: 30px var(--spacing-md) 10px" below.
  - First value (30px) is top padding, third value (10px) is bottom padding.
*/
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px var(--spacing-md) 10px; /* Internal top/bottom padding */
    position: relative;
    overflow: hidden;
    margin-top: 100px; /* Space above hero */
    margin-bottom: 0; /* Space below hero */
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(191, 0, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(0, 229, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
    max-width: 90%;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: 
        linear-gradient(135deg, var(--accent-primary) 0%, transparent 80%),
        linear-gradient(225deg, var(--accent-secondary) 0%, transparent 80%);
    filter: blur(120px);
    opacity: 0.5;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morphBg 15s infinite alternate;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.float-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-md);
}

.float-element.one {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 20%;
    animation: float 8s infinite ease-in-out;
}

.float-element.two {
    width: 150px;
    height: 150px;
    top: 60%;
    left: 50%;
    animation: float 12s infinite ease-in-out reverse;
}

.float-element.three {
    width: 70px;
    height: 70px;
    top: 30%;
    left: 60%;
    animation: float 6s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) translateX(15px) rotate(10deg);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

@keyframes morphBg {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% {
        border-radius: 60% 40% 40% 60% / 60% 30% 70% 40%;
    }
    50% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }
    75% {
        border-radius: 60% 40% 30% 70% / 60% 40% 60% 40%;
    }
    100% {
        border-radius: 40% 60% 40% 60% / 40% 50% 50% 60%;
    }
}

/* ======================== TOOLS SHOWCASE ======================== */
/* 
NOTE: Spacing adjustments for the Tools Showcase section:
- To adjust SPACE ABOVE the tools section (below the hero), change "padding-top: 60px" below.
  - Increase (e.g., 80px) for more space; decrease (e.g., 40px) for less.
  - Note: This is padding, not margin, so it adds space inside the section’s background.
- To adjust SPACE BELOW the tools section (before the next section), add "padding-bottom" below.
  - Example: "padding-bottom: 60px;" adds 60px of space below.
  - Default is 0; adjust as needed.
*/
.tools-showcase {
    background-color: var(--bg-secondary);
    padding-top: 60px; /* Space above tools section */
    margin-top: 0;
    position: relative;
    z-index: 1;
}

.tools-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%2300e5ff' fill-opacity='0.03'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm9-10v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-9-10h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9zm10 0h9v-9h-9v9z'/%3E%3Cpath d='M6 5V0H5v5H0v1h5v94h1V6h94V5H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    z-index: -1;
}

.category-tabs {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-md);
    flex-wrap: wrap;
}

.tab {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-accent);
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tab:hover, .tab.active {
    color: var(--text-primary);
    border-color: transparent;
}

.tab:hover::before, .tab.active::before {
    opacity: 0.2;
}

.tab.active {
    box-shadow: var(--glow-primary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.tool-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.tool-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.tool-card:hover::before {
    opacity: 0.05;
}

.tool-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.1), rgba(191, 0, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--accent-primary);
    font-size: 1.5rem;
    position: relative;
}

.tool-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.3;
    }
    70% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1.2);
        opacity: 0;
    }
}

.income-range {
    margin: var(--spacing-sm) auto;
    font-weight: 600;
    color: var(--success);
    font-size: 1.1rem;
    text-align: center;
}

.learn-more {
    display: inline-block;
    margin-top: var(--spacing-sm);
    color: var(--accent-primary);
    font-weight: 600;
    position: relative;
    padding-right: 20px;
}

.learn-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.learn-more:hover::after {
    transform: translate(5px, -50%);
}

/* ======================== INCOME CALCULATOR ======================== */
/* 
NOTE: Spacing adjustments for the Income Calculator section:
- To adjust SPACE ABOVE the calculator section (below tools), add "padding-top" below.
  - Example: "padding-top: 60px;" adds 60px of space above.
  - Default is 0; adjust as needed.
- To adjust SPACE BELOW the calculator section (before comparison), add "padding-bottom" below.
  - Example: "padding-bottom: 60px;" adds 60px of space below.
  - Default is 0; adjust as needed.
*/
.calculator-section {
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 10%, rgba(0, 229, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 90%, rgba(191, 0, 255, 0.1) 0%, transparent 50%);
    z-index: -1;
}

.calculator-container {
    max-width: 1000px;
    margin: 0 auto;
}

.calculator-wrapper {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    flex-wrap: wrap;
}

.calculator-inputs {
    flex: 1;
    min-width: 300px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-group {
    margin-bottom: var(--spacing-md);
}

.input-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.input-group input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    border-radius: var(--radius-sm);
    outline: none;
}

.input-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--text-primary);
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--accent-primary);
}

.range-value {
    display: block;
    text-align: right;
    color: var(--accent-primary);
    font-weight: 600;
    margin-top: var(--spacing-xs);
}

.input-group select {
    width: 100%;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-family: var(--font-main);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 16px;
}

.calculator-results {
    flex: 1;
    min-width: 300px;
}

.result-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
}

.income-display {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-accent);
    color: var(--success);
    margin: var(--spacing-md) 0;
}

.income-range {
    display: flex;
    justify-content: space-between;
    margin: var(--spacing-sm) 0;
}

.result-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

/* ======================== COMPARISON TABLE ======================== */
/* 
NOTE: Spacing adjustments for the Comparison Table section:
- To adjust SPACE ABOVE the comparison section (below calculator), add "padding-top" below.
  - Example: "padding-top: 60px;" adds 60px of space above.
  - Default is 0; adjust as needed.
- To adjust SPACE BELOW the comparison section (before blog), add "padding-bottom" below.
  - Example: "padding-bottom: 60px;" adds 60px of space below.
  - Default is 0; adjust as needed.
*/
.comparison-section {
    background-color: var(--bg-secondary);
    position: relative;
    z-index: 1;
}

.comparison-table-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: var(--spacing-md);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: var(--card-bg);
}

.comparison-table thead {
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.1), rgba(191, 0, 255, 0.1));
}

.comparison-table th {
    padding: var(--spacing-sm);
    text-align: left;
    font-family: var(--font-accent);
    color: var(--accent-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table tr:hover {
    background-color: rgba(255, 255, 255, 0.03);
}

.rating {
    display: flex;
    gap: 3px;
}

.rating span {
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.rating span.filled {
    background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary));
}

/* ======================== BLOG SECTION ======================== */
/* 
NOTE: Spacing adjustments for the Blog section:
- To adjust SPACE ABOVE the blog section (below comparison), add "padding-top" below.
  - Example: "padding-top: 60px;" adds 60px of space above.
  - Default is 0; adjust as needed.
- To adjust SPACE BELOW the blog section (before newsletter), add "padding-bottom" below.
  - Example: "padding-bottom: 60px;" adds 60px of space below.
  - Default is 0; adjust as needed.
*/
.blog-section {
    position: relative;
    overflow: hidden;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(220px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.blog-card {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.blog-image {
    height: 200px;
    position: relative;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.2), rgba(191, 0, 255, 0.2));
}

.blog-category {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(10, 11, 26, 0.8);
    color: var(--accent-primary);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

.blog-content {
    padding: var(--spacing-md);
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-secondary);
    font-size: 0.8rem;
    margin-top: var(--spacing-sm);
}

.read-more {
    display: inline-block;
    color: var(--accent-primary);
    margin-top: var(--spacing-sm);
    font-weight: 600;
    position: relative;
    padding-right: 20px;
}

.read-more::after {
    content: '→';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.read-more:hover::after {
    transform: translate(5px, -50%);
}

.blog-cta {
    margin-top: var(--spacing-lg);
    text-align: center;
}

/* ======================== NEWSLETTER SECTION ======================== */
/* 
NOTE: Spacing adjustments for the Newsletter section:
- To adjust SPACE ABOVE and BELOW the newsletter section (between blog and disclaimer), modify "padding: var(--spacing-xl) var(--spacing-md)" below.
  - First value (var(--spacing-xl), 8rem) controls both top and bottom padding.
  - Change to specific values (e.g., "padding: 60px var(--spacing-md);") for custom top/bottom spacing.
  - Example: "padding: 80px var(--spacing-md) 40px;" sets 80px above, 40px below.
*/
.newsletter-section {
    background-color: var(--bg-secondary);
    padding: var(--spacing-xl) var(--spacing-md); /* Space above and below */
    position: relative;
    z-index: 1;
}

.newsletter-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.newsletter-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    align-items: center;
    text-align: center;
}

.newsletter-content {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.newsletter-image {
    flex: 1;
    min-width: 300px;
}

.newsletter-form {
    margin-top: var(--spacing-md);
}

.form-group {
    display: flex;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-xs);
    justify-content: center;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.form-group input {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-family: var(--font-main);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.3);
}

.form-disclaimer {
    text-align: center;
}

.form-disclaimer {
    color: var(--text-secondary);
}

/* ======================== DISCLAIMER SECTION ======================== */
/* 
NOTE: Spacing adjustments for the Disclaimer section:
- To adjust SPACE ABOVE and BELOW the disclaimer section (between newsletter and footer), modify "padding: var(--spacing-lg) var(--spacing-md)" below.
  - First value (var(--spacing-lg), 4rem) controls both top and bottom padding.
  - Change to specific values (e.g., "padding: 60px var(--spacing-md);") for custom top/bottom spacing.
  - Example: "padding: 80px var(--spacing-md) 40px;" sets 80px above, 40px below.
*/
.disclaimer-section {
    background-color: var(--bg-primary);
    padding: 5px var(--spacing-md) 5px; 
    position: relative;
    z-index: 1;
}

.disclaimer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(191, 0, 255, 0.05) 0%, transparent 50%),
        linear-gradient(225deg, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.disclaimer-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.disclaimer-content {
    margin-bottom: var(--spacing-md);
}

.disclaimer-toggle {
    text-align: center;
    margin: var(--spacing-sm) 0;
}

.disclaimer-button {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: var(--font-main);
}

.disclaimer-button:hover {
    background-color: rgba(0, 229, 255, 0.1);
    box-shadow: var(--glow-primary);
}

.full-disclaimer {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.full-disclaimer ul {
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
}

.full-disclaimer li {
    margin-bottom: var(--spacing-xs);
}

/* ======================== FOOTER ======================== */
footer {
    background-color: var(--bg-primary);
    padding: var(--spacing-lg) var(--spacing-md) var(--spacing-md);
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--spacing-md);
}

.footer-logo {
    font-family: var(--font-accent);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-logo span {
    color: var(--accent-primary);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
}

.footer-column {
    text-align: center;
    min-width: 200px;
}

.footer-column h3 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-column li {
    margin-bottom: var(--spacing-xs);
}

.footer-column a:hover {
    color: var(--accent-primary);
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-xs);
    justify-content: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.2), rgba(191, 0, 255, 0.2));
    transform: translateY(-3px);
}

.footer-bottom {
    max-width: 1200px;
    margin: var(--spacing-lg) auto 0;
    padding-top: var(--spacing-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ======================== PAGE HEADER ======================== */
/* 
NOTE: Spacing adjustments for the Page Header section (used in about.html, privacy.html, terms.html):
- To adjust SPACE ABOVE the page header (below the fixed header), change "margin-top: 80px" below.
  - Increase (e.g., 100px) for more space; decrease (e.g., 60px) for less.
  - Beware: Too small a value (<60px) may overlap with the fixed header.
- To adjust SPACE BELOW the page header (before content), modify "padding: var(--spacing-xl) var(--spacing-md) var(--spacing-lg)" below.
  - Third value (var(--spacing-lg), 4rem) controls bottom padding.
  - Example: "padding: var(--spacing-xl) var(--spacing-md) 60px;" sets 60px below.
*/
.page-header {
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-md); /* Internal top/bottom padding */
    position: relative;
    overflow: hidden;
    margin-top: 60px; /* Space above page header */
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 50%, rgba(191, 0, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 70% 50%, rgba(0, 229, 255, 0.2) 0%, transparent 50%),
        url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M0 0h20v20H0V0zm2 2h16v16H2V2z"/%3E%3C/g%3E%3C/svg%3E');
    z-index: -1;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.page-header-content {
    text-align: center;
    max-width: 800px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-top: var(--spacing-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ======================== ABOUT PAGE ======================== */
.about-section, .privacy-section, .terms-section {
    padding: var(--spacing-md) var(--spacing-md);
}

.about-container, .privacy-container, .terms-container {
    max-width: 1000px;
    margin: 0 auto;
}

.about-content, .privacy-content, .terms-content {
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.mission-statement {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    line-height: 1.5;
    border-left: 3px solid var(--accent-primary);
    padding-left: var(--spacing-sm);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.about-card {
    background-color: rgba(20, 21, 48, 0.5);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background-color: rgba(20, 21, 48, 0.7);
}

.about-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 229, 255, 0.2), rgba(191, 0, 255, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    font-size: 1.2rem;
}

.about-story {
    margin: var(--spacing-md) 0;
    line-height: 1.8;
}

.about-story p {
    margin-bottom: var(--spacing-md);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.value-item {
    background-color: rgba(20, 21, 48, 0.5);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.cta-container {
    margin-top: var(--spacing-md);
    text-align: center;
    padding: var(--spacing-lg);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(191, 0, 255, 0.1));
    border-radius: var(--radius-md);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.05);
}

.cta-container p {
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
}

/* ======================== PRIVACY & TERMS PAGES ======================== */
.summary-statement {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    line-height: 1.5;
    border-left: 3px solid var(--accent-primary);
    padding-left: var(--spacing-sm);
}

.privacy-item, .terms-item {
    margin-bottom: var(--spacing-lg);
}

.privacy-details, .terms-details {
    margin-top: var(--spacing-sm);
}

.privacy-details h3, .terms-details h3 {
    margin-top: var(--spacing-md);
    font-size: 1.2rem;
}

.privacy-details ul, .terms-details ul {
    margin: var(--spacing-sm) 0 var(--spacing-sm) var(--spacing-md);
}

.privacy-details li, .terms-details li {
    margin-bottom: var(--spacing-xs);
    list-style-type: disc;
}

.last-updated {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-style: italic;
}

.text-link {
    color: var(--accent-primary);
    text-decoration: underline;
    transition: all 0.3s ease;
}

.text-link:hover {
    color: var(--accent-secondary);
    text-shadow: var(--glow-primary);
}

/* ======================== RESPONSIVE STYLES ======================== */
@media (max-width: 1200px) {
    html {
        font-size: 14px;
    }
    
    .hero {
        padding: 30px var(--spacing-md) 10px;
        margin-top: 100px;
    }
    
    .tools-showcase {
        padding-top: 60px;
    }
    
    .tools-grid, .blog-grid {
        grid-template-columns: repeat(3, minmax(220px, 1fr));
    }
    
    .hero-content {
        max-width: 90%;
    }
    
    .hero-subtitle {
        max-width: 100%;
    }
    
    .hero-image {
        width: 80%;
    }
    
    .about-content, .privacy-content, .terms-content {
        padding: var(--spacing-md);
    }
}

@media (max-width: 992px) {
    .footer-links {
        gap: var(--spacing-md);
    }
    
    .footer-column {
        min-width: 45%;
    }
    
    .about-grid, .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 0.6rem;
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .tools-grid, .blog-grid {
        grid-template-columns: repeat(2, minmax(200px, 1fr));
    }
    
    /* Mobile Navigation */
    header {
        background-color: rgba(10, 11, 26, 0.95);
        backdrop-filter: blur(10px);
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: rgba(10, 11, 26, 0.95);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        height: 0;
        overflow: hidden;
        transition: height 0.3s ease;
        z-index: 999;
    }
    
    .nav-links.active {
        height: auto;
        padding: var(--spacing-md) 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
    }
    
    .nav-links a {
        padding: var(--spacing-sm) var(--spacing-md);
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .nav-links, .cta-button {
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Layout adjustments */
    .calculator-wrapper, .newsletter-container {
        flex-direction: column;
    }
    
    .tools-grid, .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    /* Table responsiveness */
    .comparison-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .comparison-table {
        min-width: 650px;
    }
    
    .comparison-table th, .comparison-table td {
        padding: var(--spacing-xs);
        font-size: 0.9rem;
    }
    
    .comparison-table th {
        font-size: 0.8rem;
    }
    
    /* About page */
    .about-grid, .values-grid {
        grid-template-columns: 1fr;
    }
    
    /* Disclaimer section */
    .disclaimer-container {
        padding: var(--spacing-sm);
    }
    
    /* Footer responsiveness */
    .footer-content {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .footer-links {
        width: 100%;
        justify-content: space-between;
    }
    
    .footer-column {
        min-width: 45%;
        margin-bottom: var(--spacing-md);
    }
}

@media (max-width: 576px) {
    section {
        padding: var(--spacing-sm) var(--spacing-sm);
    }
    
    .hero {
        padding: 60px var(--spacing-sm);
        margin-top: 100px;
    }
    
    .tools-showcase {
        padding-top: 60px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .tools-grid, .blog-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
    }
    
    /* Transform table for mobile */
    .comparison-table {
        min-width: auto;
        border: none;
    }
    
    .comparison-table thead {
        display: none;
    }
    
    .comparison-table tr {
        margin-bottom: var(--spacing-md);
        display: block;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-md);
        padding: var(--spacing-sm);
        background-color: rgba(20, 21, 48, 0.5);
    }
    
    .comparison-table td {
        display: flex;
        flex-direction: column;
        text-align: right;
        padding: var(--spacing-xs) var(--spacing-sm);
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .comparison-table td:last-child {
        border-bottom: none;
    }
    
    [data-label] {
        display: flex;
        flex-direction: column;
    }
    
    [data-label]::before {
        content: attr(data-label);
        font-weight: 600;
        margin-bottom: 0.3rem;
        color: var(--accent-primary);
        text-align: left;
    }
    
    /* Button and form adjustments */
    .button-primary, .button-secondary {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-bottom: var(--spacing-xs);
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }
    
    .form-group {
        flex-direction: column;
        align-items: center;
    }
    
    .form-group input {
        margin-bottom: var(--spacing-xs);
        width: 100%;
    }
    
    .form-group button {
        width: 100%;
        max-width: 200px;
    }
    
    .newsletter-content {
        width: 100%;
    }
    
    /* Footer adjustments */
    .footer-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-sm);
    }
    
    .footer-column {
        width: 45%;
        min-width: 120px;
        margin-bottom: var(--spacing-sm);
    }
    
    .social-icon {
        width: 35px;
        height: 35px;
    }
    
    /* About page adjustments */
    .mission-statement, .summary-statement {
        font-size: 1.2rem;
    }
    
    .about-content, .privacy-content, .terms-content {
        padding: var(--spacing-sm);
    }
}

@media (max-width: 380px) {
    html {
        font-size: 13px;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
    
    .income-display {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 60px var(--spacing-sm);
        margin-top: 100px;
    }
    
    .tools-showcase {
        padding-top: 60px;
    }
    
    .hero-image {
        height: 150px;
    }
    
    .footer-column {
        width: 100%;
    }
}