/* Color Variables - Modern Color System */
:root {
    /* Primary Colors - Professional & Trustworthy */
    --primary-blue: #3b82f6;
    --primary-blue-dark: #2563eb;
    --primary-blue-light: #60a5fa;
    --primary-blue-ultralight: #eff6ff;
    --primary-blue-muted: #93c5fd;
    
    /* Secondary Colors - Financial & Growth */
    --secondary-green: #10b981;
    --secondary-green-dark: #059669;
    --secondary-green-light: #34d399;
    --secondary-green-ultralight: #d1fae5;
    
    --secondary-purple: #8b5cf6;
    --secondary-purple-dark: #7c3aed;
    --secondary-purple-light: #a78bfa;
    --secondary-purple-ultralight: #f3e8ff;
    
    /* Accent Colors - Action & Attention */
    --accent-amber: #f59e0b;
    --accent-amber-light: #fbbf24;
    --accent-amber-ultralight: #fef3c7;
    
    --accent-teal: #14b8a6;
    --accent-teal-light: #2dd4bf;
    --accent-teal-ultralight: #ccfbf1;
    
    /* Neutral Colors - Clean & Professional */
    --neutral-50: #f8fafc;
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Functional Colors - Status Indicators */
    --success: #10b981;
    --success-light: #34d399;
    --success-ultralight: #d1fae5;
    
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-ultralight: #fef3c7;
    
    --error: #ef4444;
    --error-light: #f87171;
    --error-ultralight: #fee2e2;
    
    --info: #3b82f6;
    --info-light: #60a5fa;
    --info-ultralight: #eff6ff;
    
    /* Calculator Theme Colors */
    --standard-calc-color: var(--primary-blue);
    --early-calc-color: var(--secondary-green);
    --fund-calc-color: var(--secondary-purple);
    --lpr-calc-color: var(--accent-teal);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-3xl: 2rem;
    
    /* Typography */
    --font-family-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    
    /* Font Sizes */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-family-sans);
    line-height: var(--leading-relaxed);
    color: var(--neutral-800);
    background-color: var(--neutral-50);
    font-size: var(--text-base);
    animation: fadeIn 0.6s ease-in-out;
}
body, html {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
/* Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes flip {
    from {
        transform: perspective(400px) rotateY(180deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Scroll Animations */
section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Feature card animations */
.feature-card {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card.float-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Guide section animations */
.guide-section {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.guide-section.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Method explanation animations */
.method-explanation {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.method-explanation.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Button hover effects */
.btn, .cta-button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn::before, .cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before, .cta-button:hover::before {
    left: 100%;
}

/* Input focus effects */
input, select, textarea {
    transition: all 0.3s ease;
    border: 2px solid var(--neutral-300);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--primary-blue);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Card hover effects */
.feature-card, .guide-section, .method-explanation {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hero content animations */
.hero-content h1 {
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-content p {
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-content .cta-button {
    animation: fadeIn 1s ease-out 0.6s both, pulse 2s ease-in-out 2s infinite;
}

/* Result container animation */
.result-container {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.result-container.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-semibold);
    line-height: var(--leading-tight);
    color: var(--neutral-900);
    margin-bottom: 1rem;
    letter-spacing: -0.025em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-extrabold);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--neutral-900) 0%, var(--neutral-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: 1.25rem;
}

h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-semibold);
    margin-bottom: 1.25rem;
}

h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-medium);
    margin-bottom: 1rem;
    color: var(--neutral-800);
}

h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    margin-bottom: 0.75rem;
    color: var(--neutral-800);
}

h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
    margin-bottom: 0.75rem;
    color: var(--neutral-700);
}

p {
    margin-bottom: 1.5rem;
    line-height: var(--leading-relaxed);
    color: var(--neutral-700);
    font-size: var(--text-base);
}

/* Paragraph Variants */
.lead {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
    line-height: var(--leading-relaxed);
    color: var(--neutral-800);
    max-width: 700px;
}

.small {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    color: var(--neutral-600);
}

.text-muted {
    color: var(--neutral-600);
}

.text-primary {
    color: var(--primary-blue);
    font-weight: var(--font-medium);
}

.text-secondary {
    color: var(--secondary-green);
    font-weight: var(--font-medium);
}

/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-size: var(--text-base);
}

table th, table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--neutral-300);
}

table th {
    background-color: var(--neutral-100);
    font-weight: var(--font-semibold);
    color: var(--neutral-800);
    white-space: nowrap;
}

table tr:hover {
    background-color: var(--neutral-50);
}

/* Table container for scrollability */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--neutral-300);
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.table-container::-webkit-scrollbar {
    height: 8px;
}

.table-container::-webkit-scrollbar-track {
    background: var(--neutral-100);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb {
    background: var(--neutral-400);
    border-radius: 4px;
}

.table-container::-webkit-scrollbar-thumb:hover {
    background: var(--neutral-500);
}

/* Spacing Utilities */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }

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

/* Header and Navigation */
header {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.scrolled {
    box-shadow: var(--shadow-xl);
    padding: 0.5rem 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 20px;
    max-width: 1200px;
    margin: 0 auto;
    transition: padding 0.3s ease;
}

header.scrolled nav {
    padding: 0.75rem 20px;
}

.logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    position: relative;
}

.logo::before {
    content: "🏠";
    font-size: var(--text-3xl);
    animation: float 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-medium);
    font-size: var(--text-lg);
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.nav-links a.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    font-weight: var(--font-semibold);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color 0.3s, transform 0.3s ease;
}

.hamburger:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: var(--radius-sm);
}

/* Hamburger animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/images.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 6rem 20px;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(16, 185, 129, 0.1) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-content h1 {
    font-size: var(--text-4xl);
    margin-bottom: 1.5rem;
    line-height: var(--leading-tight);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.9) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: var(--text-xl);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.95);
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue-dark) 100%);
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

/* Features Section */
.features {
    padding: 6rem 20px;
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
}

.features h2 {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: 1rem;
    color: var(--neutral-900);
}

.features p.subtitle {
    text-align: center;
    font-size: var(--text-lg);
    margin-bottom: 4rem;
    color: var(--neutral-600);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: linear-gradient(135deg, white 0%, var(--neutral-50) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all 0.4s ease;
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

/* Unique gradient for each calculator type */
.feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--standard-calc-color) 0%, var(--standard-calc-color) 100%);
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--early-calc-color) 0%, var(--early-calc-color) 100%);
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--fund-calc-color) 0%, var(--fund-calc-color) 100%);
}

.feature-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--lpr-calc-color) 0%, var(--lpr-calc-color) 100%);
}

/* Add unique icons for each feature card */
.feature-card:nth-child(1)::after,
.feature-card:nth-child(2)::after,
.feature-card:nth-child(3)::after,
.feature-card:nth-child(4)::after {
    content: '';
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-xl);
    opacity: 0.1;
    transition: opacity 0.4s ease;
}

.feature-card:nth-child(1)::after {
    background: var(--standard-calc-color);
    content: '📊';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card:nth-child(2)::after {
    background: var(--early-calc-color);
    content: '💰';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card:nth-child(3)::after {
    background: var(--fund-calc-color);
    content: '🏦';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card:nth-child(4)::after {
    background: var(--lpr-calc-color);
    content: '📈';
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.feature-card:nth-child(1):hover {
    border-color: var(--standard-calc-color);
    box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.1), 0 10px 10px -5px rgba(59, 130, 246, 0.04);
}

.feature-card:nth-child(2):hover {
    border-color: var(--early-calc-color);
    box-shadow: 0 20px 25px -5px rgba(16, 185, 129, 0.1), 0 10px 10px -5px rgba(16, 185, 129, 0.04);
}

.feature-card:nth-child(3):hover {
    border-color: var(--fund-calc-color);
    box-shadow: 0 20px 25px -5px rgba(139, 92, 246, 0.1), 0 10px 10px -5px rgba(139, 92, 246, 0.04);
}

.feature-card:nth-child(4):hover {
    border-color: var(--lpr-calc-color);
    box-shadow: 0 20px 25px -5px rgba(20, 184, 166, 0.1), 0 10px 10px -5px rgba(20, 184, 166, 0.04);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover::after {
    opacity: 0.2;
    transform: scale(1.1);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--neutral-900);
    font-weight: var(--font-semibold);
    position: relative;
    z-index: 1;
}

.feature-card p {
    margin-bottom: 2rem;
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: var(--radius-lg);
    text-decoration: none;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: var(--text-sm);
    position: relative;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-blue-dark) 0%, var(--primary-blue-dark) 100%);
}

/* About Intro Section */
.about-intro {
    padding: 6rem 20px;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    position: relative;
    border-radius: var(--radius-3xl) var(--radius-3xl) 0 0;
    margin-top: -2rem;
    z-index: 1;
    box-shadow: 0 -10px 25px -5px rgba(0, 0, 0, 0.05);
}

.about-intro::before {
    content: '';
    position: absolute;
    top: 4rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-green) 50%, var(--secondary-purple) 100%);
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.about-intro h2 {
    text-align: center;
    font-size: var(--text-3xl);
    margin-bottom: 3rem;
    color: var(--neutral-900);
    font-weight: var(--font-semibold);
    position: relative;
    padding-top: 2rem;
}

.about-intro p {
    max-width: 900px;
    margin: 0 auto 2rem;
    text-align: center;
    color: var(--neutral-600);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
    background-color: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.about-intro p:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Usage Guide Section */
.usage-guide {
    padding: 4rem 20px;
    background-color: #fff;
    position: relative;
}

.usage-guide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-green) 50%, var(--secondary-purple) 100%);
}

.usage-guide h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.guide-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

.guide-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--neutral-100) 0%, var(--neutral-50) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--neutral-200);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.guide-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.guide-section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.guide-section h3 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-900);
    padding-left: 1rem;
}

.guide-section h4 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1rem;
    color: var(--neutral-800);
    padding-left: 1rem;
}

.method-explanation {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--secondary-purple);
    transition: all 0.3s ease;
}

.method-explanation:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.usage-steps {
    background-color: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
    border-left: 3px solid var(--accent-teal);
    transition: all 0.3s ease;
}

.usage-steps:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.usage-steps ol {
    padding-left: 1.5rem;
    list-style-type: none;
    counter-reset: step-counter;
}

.usage-steps li {
    margin-bottom: 1rem;
    color: var(--neutral-700);
    line-height: 1.7;
    counter-increment: step-counter;
    position: relative;
    padding-left: 2.5rem;
}

.usage-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    box-shadow: var(--shadow-sm);
}

.tips {
    background: linear-gradient(135deg, var(--info-ultralight) 0%, var(--info-ultralight) 100%);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--info);
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.tips p {
    color: var(--neutral-800);
    margin: 0;
    font-weight: var(--font-medium);
}

.guide-tips {
    background: linear-gradient(135deg, var(--success-ultralight) 0%, var(--success-ultralight) 100%);
    padding: 2rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    border-left: 4px solid var(--success);
    box-shadow: var(--shadow-md);
}

.guide-tips h3 {
    margin-top: 0;
    color: var(--neutral-900);
}

.guide-tips ul {
    padding-left: 1.5rem;
}

.guide-tips li {
    margin-bottom: 0.75rem;
    color: var(--neutral-700);
    line-height: 1.6;
    position: relative;
}

.guide-cta {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-blue-ultralight) 0%, var(--secondary-purple-ultralight) 100%);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--primary-blue-muted);
}

.guide-cta p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--neutral-800);
    font-weight: var(--font-medium);
}

.guide-section p {
    color: var(--neutral-700);
    line-height: 1.8;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

/* Calculator Pages */
.calculator-section {
    padding: 3rem 20px;
    max-width: 800px;
    margin: 0 auto;
}

.calculator-section h1 {
    text-align: center;
    font-size: var(--text-4xl);
    margin-bottom: 2rem;
    color: var(--neutral-900);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-form {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
}

.calculator-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-green) 50%, var(--secondary-purple) 100%);
}

.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: var(--font-medium);
    color: var(--neutral-700);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.form-group:hover label {
    color: var(--primary-blue);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1.25rem 1rem;
    border: 2px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--neutral-900);
    background-color: white;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1), var(--shadow-md);
    transform: translateY(-1px);
}

.form-group input::placeholder {
    color: var(--neutral-400);
    font-weight: var(--font-normal);
}

/* Input with prefix/suffix styling */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    padding-left: 3.5rem;
}

.input-prefix {
    position: absolute;
    left: 1rem;
    color: var(--primary-blue);
    font-weight: var(--font-semibold);
    font-size: var(--text-lg);
    z-index: 2;
}

/* Form validation states */
.form-group.success input {
    border-color: var(--success);
}

.form-group.error input {
    border-color: var(--error);
}

.form-group.success label {
    color: var(--success);
}

.form-group.error label {
    color: var(--error);
}

.error-message {
    color: var(--error);
    font-size: var(--text-xs);
    margin-top: 0.5rem;
    font-weight: var(--font-medium);
    display: block;
}

/* Enhanced button styles */
.calculate-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--secondary-green-dark) 100%);
    color: white;
    padding: 1.25rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.calculate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.calculate-btn:hover::before {
    left: 100%;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, var(--secondary-green-dark) 0%, var(--secondary-green-dark) 100%);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-md);
}

.calculate-btn:disabled {
    background: var(--neutral-300);
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-sm);
}

/* Reset button style */
.reset-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--neutral-300) 0%, var(--neutral-400) 100%);
    color: var(--neutral-800);
    padding: 1.25rem;
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 1rem;
}

.reset-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--neutral-400) 0%, var(--neutral-500) 100%);
    color: var(--neutral-900);
}

.reset-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.results {
    background: linear-gradient(135deg, var(--neutral-50) 0%, white 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--neutral-200);
    position: relative;
    overflow: hidden;
    animation: slideInUp 0.6s ease-out;
}

.results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
}

.results h2 {
    font-size: var(--text-2xl);
    margin-bottom: 2rem;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: var(--font-semibold);
}

.results h2::before {
    content: "📊";
    font-size: var(--text-3xl);
    animation: pulse 2s infinite;
}

.result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    background-color: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    border-left: 4px solid var(--primary-blue);
    position: relative;
    overflow: hidden;
}

.result-item::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue-ultralight) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.result-item:hover::after {
    width: 100%;
}

.result-item:hover {
    transform: translateX(4px) translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.result-item:last-child {
    margin-bottom: 0;
}

/* Different result types with distinct colors */
.result-item.primary {
    border-left-color: var(--primary-blue);
}

.result-item.success {
    border-left-color: var(--success);
}

.result-item.warning {
    border-left-color: var(--warning);
}

.result-item.info {
    border-left-color: var(--info);
}

.result-label {
    font-weight: var(--font-medium);
    color: var(--neutral-600);
    font-size: var(--text-lg);
    z-index: 1;
    position: relative;
}

.result-value {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--neutral-900);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 1;
    position: relative;
    text-shadow: 0 2px 4px rgba(59, 130, 246, 0.1);
}

.result-value.highlight {
    font-size: var(--text-3xl);
    background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-blue) 100%);
}

/* Result summary card */
.result-summary {
    background: linear-gradient(135deg, var(--primary-blue-ultralight) 0%, var(--secondary-purple-ultralight) 100%);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--primary-blue-muted);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.result-summary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: float 3s ease-in-out infinite;
}

.result-summary h3 {
    font-size: var(--text-xl);
    margin-bottom: 1rem;
    color: var(--neutral-800);
    z-index: 1;
    position: relative;
}

.result-summary .summary-value {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--primary-blue);
    z-index: 1;
    position: relative;
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: slideInUp 0.8s ease-out;
}

/* Repayment Schedule */
.schedule {
    background: linear-gradient(135deg, var(--neutral-50) 0%, var(--neutral-100) 100%);
    padding: 2.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow-x: auto;
    border: 1px solid var(--neutral-200);
}

.schedule h2 {
    font-size: var(--text-2xl);
    margin-bottom: 2rem;
    color: var(--neutral-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.schedule h2::before {
    content: "📋";
    font-size: var(--text-3xl);
}

.schedule table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.schedule th,
.schedule td {
    padding: 1.25rem;
    text-align: right;
    border-bottom: 1px solid var(--neutral-200);
    font-size: var(--text-sm);
}

.schedule th {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-blue-dark) 100%);
    font-weight: var(--font-semibold);
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
}

.schedule td {
    color: var(--neutral-700);
    font-weight: var(--font-medium);
}

.schedule tr:nth-child(even) {
    background-color: var(--neutral-50);
}

.schedule tr:hover {
    background-color: var(--neutral-100);
}

.schedule td:first-child,
.schedule th:first-child {
    text-align: left;
    font-weight: var(--font-semibold);
    color: var(--neutral-900);
}

/* Make the schedule responsive */
@media (max-width: 768px) {
    .schedule table {
        font-size: var(--text-xs);
    }
    
    .schedule th,
    .schedule td {
        padding: 0.75rem;
    }
}

/* Legal Pages */
.legal-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 20px;
    background-color: #fff;
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #34495e;
}

.legal-content h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.75rem;
    color: #555;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.legal-content ul,
.legal-content ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #555;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-content th,
.legal-content td {
    padding: 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}

.legal-content th {
    background-color: #f8f9fa;
    font-weight: 600;
}

/* Contact Page */
.contact-content {
    text-align: center;
    padding: 4rem 20px;
}

.contact-content h1 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #555;
}

.contact-email {
    font-size: 1.5rem;
    font-weight: 600;
    color: #3498db;
    text-decoration: none;
    margin: 1rem 0;
    display: inline-block;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--neutral-800) 0%, var(--neutral-900) 100%);
    color: white;
    padding: 3rem 20px 2rem;
    border-top: 1px solid var(--neutral-700);
    position: relative;
    overflow: hidden;
}

/* Footer decorative elements */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-green) 50%, var(--secondary-purple) 100%);
}

footer::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    animation: slideInUp 0.6s ease-out;
}

.footer-logo {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
    position: relative;
}

.footer-logo::before {
    content: "🏠";
    font-size: var(--text-3xl);
    animation: float 3s ease-in-out infinite;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-description {
    max-width: 600px;
    margin-bottom: 2rem;
    color: var(--neutral-400);
    line-height: var(--leading-relaxed);
    font-size: var(--text-lg);
    transition: color 0.3s ease;
}

.footer-description:hover {
    color: var(--neutral-300);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--neutral-700);
}

.footer-links a {
    color: var(--neutral-400);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: var(--font-medium);
    position: relative;
    padding: 0.5rem 0;
    font-size: var(--text-lg);
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: white;
    transform: translateY(-2px);
    text-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.footer-links a:hover::after {
    width: 100%;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Footer social links (if needed) */
.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-social a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--neutral-700);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: var(--text-xl);
}

.footer-social a:hover {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.copyright {
    text-align: center;
    color: var(--neutral-500);
    font-size: var(--text-sm);
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-700);
    position: relative;
    z-index: 1;
}

.copyright p {
    margin-bottom: 0;
    font-weight: var(--font-medium);
}

.copyright span {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: var(--font-semibold);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    /* Navigation */
    .nav-links {
        position: fixed;
        right: -100%;
        top: 80px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: all 0.3s ease;
        box-shadow: var(--shadow-xl);
        padding: 2rem 0;
        gap: 1.5rem;
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }

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

    .nav-links a {
        font-size: var(--text-base);
        color: var(--neutral-800) !important;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background-color: var(--neutral-100);
        color: var(--primary-blue) !important;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 20px;
        min-height: 70vh;
    }

    .hero-content h1 {
        font-size: var(--text-3xl);
    }

    .hero-content p {
        font-size: var(--text-base);
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: var(--text-base);
    }

    /* Features Section */
    .features {
        padding: 5rem 20px;
    }

    .features h2 {
        font-size: var(--text-2xl);
    }

    .feature-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 2rem;
    }

    /* About Section */
    .about-intro {
        padding: 5rem 20px;
    }

    .about-intro h2 {
        font-size: var(--text-2xl);
    }

    .about-intro p {
        font-size: var(--text-base);
    }

    /* Usage Guide */
    .usage-guide {
        padding: 5rem 20px;
    }

    .usage-guide h2 {
        font-size: var(--text-2xl);
    }

    .guide-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }

    .guide-section h3 {
        font-size: var(--text-xl);
    }

    .guide-section h4 {
        font-size: var(--text-lg);
    }

    .method-explanation,
    .usage-steps,
    .tips,
    .guide-tips {
        padding: 1.25rem;
    }

    /* Calculator Pages */
    .calculator-section {
        padding: 3rem 20px;
    }

    .calculator-form,
    .results,
    .schedule {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group select {
        padding: 1rem;
    }

    .calculate-btn {
        padding: 1rem;
        font-size: var(--text-base);
    }

    .result-item {
        padding: 1rem;
    }

    .result-label,
    .result-value {
        font-size: var(--text-base);
    }

    /* Footer */
    .footer-links {
        gap: 1rem;
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    /* General */
    .container {
        padding: 0 15px;
    }

    /* Hero Section */
    .hero {
        padding: 4rem 15px;
        min-height: 60vh;
    }

    .hero-content h1 {
        font-size: var(--text-2xl);
    }

    .hero-content p {
        font-size: var(--text-sm);
        margin-bottom: 2rem;
    }

    /* Features Section */
    .features {
        padding: 4rem 15px;
    }

    .features h2 {
        font-size: var(--text-xl);
    }

    .feature-card {
        padding: 1.5rem;
    }

    /* Usage Guide */
    .usage-guide {
        padding: 4rem 15px;
    }

    .guide-section {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
    }

    .guide-tips ul {
        padding-left: 1rem;
    }

    /* Calculator Pages */
    .calculator-section {
        padding: 2rem 15px;
    }

    .calculator-form,
    .results,
    .schedule {
        padding: 1.25rem;
    }

    /* Schedule Table */
    .schedule th,
    .schedule td {
        padding: 0.5rem;
        font-size: var(--text-xs);
    }

    /* Footer */
    footer {
        padding: 2rem 15px 1rem;
    }

    .footer-links a {
        font-size: var(--text-sm);
    }
}

/* Tablet Optimization */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .hero-content h1 {
        font-size: var(--text-3xl);
    }
}

/* Animation for mobile menu */
.hamburger.active span:nth-child(2) {
    opacity: 0;
}

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

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