/* ===========================================
   V|A ACADEMIC TOOLKIT - MAIN STYLESHEET
   Version: 2.0 | Professional Redesign
   =========================================== */

/* CSS Variables - Green Theme */
:root {
    /* Primary Colors - Green Theme */
    --primary-color: #0a7a5a;
    --primary-dark: #08634a;
    --primary-light: #0d9b74;
    --primary-bg: #f0fdf4;
    
    /* Secondary Colors */
    --secondary-color: #2563eb;
    --secondary-dark: #1d4ed8;
    --accent-color: #f59e0b;
    --accent-dark: #d97706;
    
    /* Neutral Colors */
    --dark-color: #1e293b;
    --light-color: #ffffff;
    --gray-color: #64748b;
    --gray-light: #f1f5f9;
    --gray-dark: #475569;
    --border-color: #e2e8f0;
    
    /* Semantic Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-code: 'SF Mono', Monaco, monospace;
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 70px;
    --container-width: 1200px;
    --sidebar-width: 280px;
}

/* Dark Theme Variables */
[data-theme="dark"] {
    --primary-color: #0d9b74;
    --primary-dark: #0a7a5a;
    --primary-light: #10b981;
    --primary-bg: #0f172a;
    
    --dark-color: #f8fafc;
    --light-color: #1e293b;
    --gray-color: #cbd5e1;
    --gray-light: #334155;
    --gray-dark: #94a3b8;
    --border-color: #475569;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--dark-color);
    background-color: var(--light-color);
    line-height: 1.6;
    transition: background-color var(--transition-base), color var(--transition-base);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    margin-bottom: var(--space-md);
    color: var(--gray-color);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity var(--transition-base);
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-light);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto var(--space-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--light-color);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    height: var(--header-height);
    transition: all var(--transition-base);
}

.main-header.scrolled {
    box-shadow: var(--shadow-lg);
    height: 60px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    transition: height var(--transition-base);
}

.main-header.scrolled .navbar {
    height: 60px;
}

.nav-brand .logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.nav-brand .logo i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

.nav-brand .logo strong {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-color);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
    background: var(--primary-bg);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle,
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--gray-color);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.theme-toggle:hover,
.menu-toggle:hover {
    color: var(--primary-color);
    background: var(--gray-light);
}

.menu-toggle {
    display: none;
}

/* Hero Section */
.hero-section {
    padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-3xl);
    background: linear-gradient(135deg, var(--primary-bg) 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: var(--space-lg);
    animation: slideUp 0.8s ease-out;
}

.highlight {
    color: var(--primary-color);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30%;
    background: linear-gradient(transparent 50%, rgba(10, 122, 90, 0.1) 50%);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--gray-dark);
    margin-bottom: var(--space-2xl);
    animation: slideUp 0.8s ease-out 0.2s both;
}

/* Tool Pills */
.tool-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    margin-bottom: var(--space-2xl);
    animation: slideUp 0.8s ease-out 0.4s both;
}

.pill {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--light-color);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    font-weight: 500;
    color: var(--gray-color);
    transition: all var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pill.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--light-color);
}

.pill i {
    font-size: 0.875rem;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
    animation: fadeIn 1s ease-out 0.6s both;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-color);
    margin-top: var(--space-xs);
}

/* Main Content */
.main-content {
    padding: var(--space-3xl) 0;
}

/* Calculator Container */
.calculator-container {
    background: var(--light-color);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    margin-bottom: var(--space-3xl);
    border: 1px solid var(--border-color);
}

.calc-tabs {
    display: flex;
    background: var(--gray-light);
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none;
}

.calc-tabs::-webkit-scrollbar {
    display: none;
}

.calc-tab {
    flex: 1;
    min-width: 140px;
    padding: var(--space-lg) var(--space-xl);
    background: none;
    border: none;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--gray-color);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    white-space: nowrap;
    position: relative;
}

.calc-tab:hover {
    color: var(--primary-color);
    background: rgba(10, 122, 90, 0.05);
}

.calc-tab.active {
    color: var(--primary-color);
    background: var(--light-color);
    font-weight: 600;
}

.calc-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-color);
}

.calc-content {
    padding: var(--space-2xl);
}

.calc-screen {
    display: none;
    animation: fadeIn 0.5s ease-out;
}

.calc-screen.active {
    display: block;
}

.screen-header {
    margin-bottom: var(--space-2xl);
}

.screen-header h3 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--dark-color);
}

.screen-description {
    color: var(--gray-color);
    font-size: 0.875rem;
}

/* Calculator Forms */
.calculator-form,
.semester-inputs,
.course-inputs {
    margin-bottom: var(--space-2xl);
}

.input-group {
    margin-bottom: var(--space-lg);
}

.input-group label {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--space-sm);
}

.input-field,
.select-field {
    width: 100%;
    padding: var(--space-md) var(--space-lg);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--dark-color);
    background: var(--light-color);
    transition: all var(--transition-fast);
}

.input-field:focus,
.select-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(10, 122, 90, 0.1);
}

.input-hint {
    font-size: 0.75rem;
    color: var(--gray-color);
    margin-top: var(--space-xs);
}

/* Buttons */
.btn-calculate,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.btn-calculate {
    background: var(--primary-color);
    color: var(--light-color);
}

.btn-calculate:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--gray-light);
    color: var(--gray-dark);
}

.btn-secondary:hover {
    background: var(--gray-color);
    color: var(--light-color);
}

.form-actions {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* Result Container */
.result-container {
    background: var(--primary-bg);
    border: 1px solid rgba(10, 122, 90, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.result-header {
    margin-bottom: var(--space-lg);
}

.result-header h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-dark);
}

.result-display {
    text-align: center;
}

.result-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--space-xs);
}

.result-unit {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--gray-color);
}

.result-details {
    color: var(--gray-dark);
    font-size: 0.875rem;
}

.result-details p {
    margin-bottom: var(--space-xs);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Conversion Table */
.conversion-table {
    margin-top: var(--space-2xl);
}

.conversion-table h4 {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
    color: var(--dark-color);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--light-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

thead {
    background: var(--primary-color);
}

th {
    padding: var(--space-md) var(--space-lg);
    text-align: left;
    font-weight: 500;
    color: var(--light-color);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tbody tr {
    border-bottom: 1px solid var(--border-color);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: var(--space-md) var(--space-lg);
    color: var(--dark-color);
}

tbody tr:nth-child(even) {
    background: var(--gray-light);
}

/* Content Sections */
.content-section {
    margin: var(--space-3xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--dark-color);
}

.section-subtitle {
    color: var(--gray-color);
    max-width: 600px;
    margin: 0 auto;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.content-card {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--transition-base);
}

.content-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.card-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-bg);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-lg);
}

.card-icon i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.content-card h3 {
    color: var(--dark-color);
    margin-bottom: var(--space-md);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--primary-color);
    font-weight: 500;
    margin-top: var(--space-md);
}

.card-link:hover {
    gap: var(--space-md);
}

/* FAQ Section */
.faq-section {
    margin: var(--space-3xl) 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: var(--gray-light);
}

.faq-question.active {
    background: var(--primary-bg);
}

.faq-number {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    background: var(--primary-bg);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.faq-question h3 {
    flex: 1;
    margin: 0 var(--space-lg);
    font-size: 1.125rem;
    color: var(--dark-color);
}

.faq-question i {
    color: var(--gray-color);
    transition: transform var(--transition-fast);
}

.faq-question.active i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 var(--space-xl);
    max-height: 0;
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-answer.open {
    padding: var(--space-xl);
    max-height: 1000px;
}

.faq-answer p,
.faq-answer ul,
.faq-answer ol {
    color: var(--gray-dark);
    margin-bottom: var(--space-md);
}

.faq-answer ul,
.faq-answer ol {
    margin-left: var(--space-lg);
}

.faq-answer li {
    margin-bottom: var(--space-sm);
}

/* AdSense Section */
.adsense-section {
    margin: var(--space-3xl) 0;
}

.ad-container {
    background: var(--gray-light);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl);
    text-align: center;
}

.ad-placeholder {
    color: var(--gray-color);
    font-style: italic;
}

/* Resources Section */
.resources-section {
    margin: var(--space-3xl) 0;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.resource-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.resource-card:hover {
    background: var(--primary-bg);
    border-color: var(--primary-color);
    transform: translateX(4px);
}

.resource-card i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.resource-card span {
    font-weight: 500;
    color: var(--dark-color);
}

/* Footer */
.main-footer {
    background: var(--dark-color);
    color: var(--light-color);
    padding: var(--space-3xl) 0 var(--space-xl);
    margin-top: var(--space-3xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-3xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--light-color);
}

.footer-logo i {
    color: var(--primary-light);
}

.footer-description {
    color: var(--gray-color);
    margin-bottom: var(--space-lg);
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--light-color);
    transition: all var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-col h4 {
    color: var(--light-color);
    margin-bottom: var(--space-lg);
    font-size: 1.125rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: var(--gray-color);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--primary-light);
    padding-left: var(--space-xs);
}

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.copyright {
    color: var(--gray-color);
    font-size: 0.875rem;
}

.footer-info {
    display: flex;
    gap: var(--space-xl);
    color: var(--gray-color);
    font-size: 0.875rem;
}

.footer-info p {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin: 0;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    z-index: 100;
    box-shadow: var(--shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-4px);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-pop {
    animation: popIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    70% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    html {
        font-size: 15px;
    }
    
    .container {
        padding: 0 var(--space-xl);
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .nav-menu {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--light-color);
        flex-direction: column;
        padding: var(--space-xl);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-links {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-actions {
        width: 100%;
        justify-content: space-between;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .tool-pills {
        gap: var(--space-sm);
    }
    
    .pill {
        padding: var(--space-xs) var(--space-md);
        font-size: 0.875rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .calc-tab {
        min-width: 120px;
        padding: var(--space-md) var(--space-lg);
        font-size: 0.875rem;
    }
    
    .calc-content {
        padding: var(--space-xl);
    }
    
    .result-value {
        font-size: 2.5rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    
    .back-to-top {
        bottom: var(--space-lg);
        right: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-lg);
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .calc-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
    }
    
    .calc-tab {
        min-width: 100px;
        padding: var(--space-md);
    }
    
    .result-value {
        font-size: 2rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .resources-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .main-header,
    .tool-pills,
    .adsense-section,
    .social-links,
    .back-to-top {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .calculator-container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}