* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.calculator-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.input-section, .results-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.section-title {
    color: #4a5568;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    border-bottom: 3px solid #667eea;
    padding-bottom: 10px;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 1.1rem;
}

.input-group input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.input-group input[type="number"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.slider-container {
    margin-top: 15px;
}

.slider-container input[type="range"] {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #e2e8f0;
    outline: none;
    -webkit-appearance: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #667eea;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.9rem;
    color: #718096;
}

.calculate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.calculate-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

@media (hover: none) and (pointer: coarse) {
    .calculate-btn:hover {
        transform: none;
        box-shadow: none;
    }
    
    .result-card:hover {
        transform: none;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    
    .input-group input[type="number"]:focus {
        transform: none;
    }
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.result-card.highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.result-card:active {
    transform: translateY(-2px);
}

.result-card h3 {
    font-size: 1rem;
    margin-bottom: 10px;
    opacity: 0.8;
}

.result-value {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 8px;
}

.result-desc {
    font-size: 0.9rem;
    opacity: 0.7;
}

.chart-container {
    margin: 30px 0;
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
    height: 400px;
}

.breakdown-section {
    margin-top: 30px;
}

.breakdown-section h3 {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.breakdown-table-container {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.breakdown-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.breakdown-table th {
    background: #667eea;
    color: white;
    padding: 12px 8px;
    text-align: left;
    position: sticky;
    top: 0;
    z-index: 10;
}

.breakdown-table td {
    padding: 10px 8px;
    border-bottom: 1px solid #e2e8f0;
}

.breakdown-table tbody tr:hover {
    background: #f7fafc;
}

.footer {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
}

.content-section h2 {
    color: #4a5568;
    margin-bottom: 15px;
    margin-top: 30px;
    font-size: 1.5rem;
    border-bottom: 2px solid #667eea;
    padding-bottom: 8px;
}

.content-section h2:first-child {
    margin-top: 0;
}

.content-section p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: justify;
    font-size: 1rem;
}

.age-info {
    background: #f0f8ff;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    margin-top: 20px;
}

.age-info p {
    margin: 0;
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 600;
}

.investment-years {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#investmentYears {
    color: #667eea;
    font-size: 1.2rem;
    font-weight: bold;
}

.input-note {
    font-size: 0.9rem;
    color: #718096;
    margin-top: 8px;
    margin-bottom: 0;
    line-height: 1.4;
    font-style: italic;
}

.input-note sup {
    font-size: 0.8rem;
    color: #667eea;
}

/* Touch-friendly improvements */
@media (pointer: coarse) {
    .input-group input[type="number"] {
        min-height: 44px; /* iOS recommended touch target */
    }
    
    .calculate-btn {
        min-height: 44px;
        touch-action: manipulation;
    }
    
    .slider-container input[type="range"] {
        height: 12px;
        cursor: pointer;
    }
    
    .slider-container input[type="range"]::-webkit-slider-thumb {
        width: 24px;
        height: 24px;
    }
    
    .slider-container input[type="range"]::-moz-range-thumb {
        width: 24px;
        height: 24px;
    }
}

/* Loading animation */
.calculate-btn.loading {
    position: relative;
    color: transparent;
}

.calculate-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus improvements for accessibility */
.input-group input[type="number"]:focus,
.calculate-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .input-section, .results-section, .footer {
        background: rgba(255,255,255,0.95);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .calculate-btn:hover,
    .result-card:hover,
    .input-group input[type="number"]:focus {
        transform: none;
    }
}

@media (max-width: 1024px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .container {
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .header h1 {
        font-size: 2.2rem;
        line-height: 1.2;
    }
    
    .subtitle {
        font-size: 1.1rem;
        padding: 0 10px;
    }
    
    .input-section, .results-section {
        padding: 25px 20px;
        margin: 0 5px;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .input-group {
        margin-bottom: 20px;
    }
    
    .input-group label {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    .input-group input[type="number"] {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .input-note {
        font-size: 0.85rem;
        margin-top: 6px;
    }
    
    .calculate-btn {
        padding: 16px 20px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    .results-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-card {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .result-card h3 {
        font-size: 0.95rem;
    }
    
    .result-value {
        font-size: 1.8rem;
    }
    
    .chart-container {
        padding: 15px;
        height: 350px;
    }
    
    .breakdown-section h3 {
        font-size: 1.2rem;
    }
    
    .breakdown-table {
        font-size: 0.85rem;
    }
    
    .breakdown-table th,
    .breakdown-table td {
        padding: 10px 6px;
    }
    
    .breakdown-table-container {
        max-height: 350px;
    }
    
    .age-info {
        padding: 12px;
        margin-top: 15px;
    }
    
    .age-info p {
        font-size: 1rem;
    }
    
    .content-section h2 {
        font-size: 1.3rem;
        margin-top: 25px;
    }
    
    .content-section p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px;
    }
    
    .header {
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .header h1 {
        font-size: 1.8rem;
        line-height: 1.1;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 0.95rem;
        line-height: 1.3;
    }
    
    .calculator-wrapper {
        gap: 20px;
    }
    
    .input-section, .results-section {
        padding: 20px 15px;
        margin: 0;
        border-radius: 12px;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }
    
    .input-group {
        margin-bottom: 18px;
    }
    
    .input-group label {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .input-group input[type="number"] {
        padding: 12px 14px;
        font-size: 16px; /* Prevents zoom on iOS */
        border-radius: 8px;
    }
    
    .input-note {
        font-size: 0.8rem;
        margin-top: 5px;
    }
    
    .slider-container {
        margin-top: 12px;
    }
    
    .slider-labels {
        font-size: 0.8rem;
        margin-top: 6px;
    }
    
    .calculate-btn {
        padding: 14px 18px;
        font-size: 1rem;
        border-radius: 8px;
        margin-top: 15px;
    }
    
    .results-grid {
        gap: 12px;
    }
    
    .result-card {
        padding: 16px 12px;
        border-radius: 10px;
    }
    
    .result-card h3 {
        font-size: 0.9rem;
        margin-bottom: 8px;
    }
    
    .result-value {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .result-desc {
        font-size: 0.8rem;
    }
    
    .chart-container {
        padding: 12px;
        height: 300px;
        margin: 20px 0;
    }
    
    .breakdown-section {
        margin-top: 25px;
    }
    
    .breakdown-section h3 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .breakdown-table {
        font-size: 0.75rem;
    }
    
    .breakdown-table th,
    .breakdown-table td {
        padding: 8px 4px;
    }
    
    .breakdown-table-container {
        max-height: 300px;
        border-radius: 6px;
    }
    
    .age-info {
        padding: 10px;
        margin-top: 12px;
        border-radius: 6px;
    }
    
    .age-info p {
        font-size: 0.9rem;
    }
    
    .footer {
        margin-top: 30px;
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .content-section h2 {
        font-size: 1.2rem;
        margin-top: 20px;
        margin-bottom: 12px;
    }
    
    .content-section p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

@media (max-width: 360px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .input-section, .results-section {
        padding: 15px 12px;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .input-group input[type="number"] {
        padding: 10px 12px;
    }
    
    .result-value {
        font-size: 1.4rem;
    }
    
    .chart-container {
        height: 250px;
        padding: 10px;
    }
    
    .breakdown-table {
        font-size: 0.7rem;
    }
    
    .breakdown-table th,
    .breakdown-table td {
        padding: 6px 3px;
    }
}

/* Baby Steps Page Styles - Premium Design */
.babysteps-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    padding: 80px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 24px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0,0,0,0.3);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 60px;
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 8px;
    font-weight: 500;
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
}

.float-item {
    position: absolute;
    font-size: 2rem;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.float-item:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.float-item:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 1.5s;
}

.float-item:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 3s;
}

.float-item:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 4.5s;
}

/* Timeline Section */
.steps-timeline {
    padding: 100px 0;
    background: white;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.2rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.timeline-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding: 0 20px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-step {
    display: flex;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    animation: slideInUp 0.8s ease-out forwards;
}

.timeline-step:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-step:nth-child(1) { animation-delay: 0.1s; }
.timeline-step:nth-child(2) { animation-delay: 0.2s; }
.timeline-step:nth-child(3) { animation-delay: 0.3s; }
.timeline-step:nth-child(4) { animation-delay: 0.4s; }
.timeline-step:nth-child(5) { animation-delay: 0.5s; }
.timeline-step:nth-child(6) { animation-delay: 0.6s; }
.timeline-step:nth-child(7) { animation-delay: 0.7s; }
.timeline-step:nth-child(8) { animation-delay: 0.8s; }

.step-marker {
    position: absolute;
    left: 50%;
    top: 30px;
    transform: translateX(-50%);
    z-index: 10;
}

.step-number {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border: 4px solid white;
}

.step-content {
    width: 45%;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.step-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.step-content::before {
    content: '';
    position: absolute;
    top: 40px;
    width: 0;
    height: 0;
    border: 15px solid transparent;
}

.timeline-step:nth-child(odd) .step-content::before {
    right: -30px;
    border-left-color: white;
}

.timeline-step:nth-child(even) .step-content::before {
    left: -30px;
    border-right-color: white;
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.step-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
}

.step-content p {
    color: #666;
    line-height: 1.7;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.step-details {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.step-details span {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.difficulty {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.timeline {
    background: #f8f9fa;
    color: #666;
    border: 1px solid #e9ecef;
}

/* PDF Resource Section */
.pdf-resource-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.pdf-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.resource-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    margin-bottom: 30px;
}

.pdf-content h2 {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.2;
}

.pdf-content p {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 40px;
}

.pdf-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.feature-item span {
    font-size: 1.1rem;
    color: #4a5568;
    font-weight: 500;
}

.pdf-actions {
    display: flex;
    gap: 20px;
}

.primary-btn, .secondary-btn {
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.primary-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-3px);
}

.pdf-preview {
    position: relative;
}

.pdf-frame {
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.3s ease;
}

.pdf-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.pdf-frame iframe {
    width: 100%;
    border-radius: 10px;
    border: none;
}

/* Calculator Tools Section */
.calculator-tools-section {
    padding: 100px 0;
    background: white;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.tool-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #f1f5f9;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tool-card:hover::before {
    transform: scaleX(1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.tool-icon {
    font-size: 3rem;
    flex-shrink: 0;
}

.tool-content {
    flex: 1;
}

.tool-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 10px;
}

.tool-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.tool-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.tool-arrow {
    font-size: 1.5rem;
    color: #667eea;
    transition: transform 0.3s ease;
}

.tool-card:hover .tool-arrow {
    transform: translateX(5px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-stats {
        gap: 40px;
    }
    
    .pdf-hero {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .step-marker {
        left: 30px;
    }
    
    .timeline-step {
        flex-direction: row !important;
        padding-left: 120px;
    }
    
    .step-content {
        width: 100%;
    }
    
    .step-content::before {
        left: -30px !important;
        right: auto !important;
        border-right-color: white !important;
        border-left-color: transparent !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .step-content {
        padding: 25px;
    }
    
    .step-content h3 {
        font-size: 1.4rem;
    }
    
    .step-details {
        flex-direction: column;
        gap: 10px;
    }
    
    .pdf-content h2 {
        font-size: 2rem;
    }
    
    .pdf-frame {
        transform: none;
    }
    
    .pdf-actions {
        flex-direction: column;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .tool-card {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 0 80px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .steps-timeline {
        padding: 60px 0;
    }
    
    .timeline-step {
        margin-bottom: 60px;
        padding-left: 100px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .step-content {
        padding: 20px;
    }
    
    .step-icon {
        font-size: 2rem;
    }
    
    .pdf-resource-section {
        padding: 60px 0;
    }
    
    .calculator-tools-section {
        padding: 60px 0;
    }
    
    .tool-card {
        padding: 25px;
    }
}