/* =============================================
   Unit Conversion & Physical Models - Tool CSS
   Modern, Responsive, Mobile-First Design
   ============================================= */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary-color: #0f172a;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
    --text-color: #334155;
    --text-light: #64748b;
    --text-white: #ffffff;
    --bg-color: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --border-color: #e2e8f0;
    --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 -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --max-width: 1280px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--secondary-color);
}

h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.5rem);
}

h4 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
}

p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* Desktop Navigation */
.nav-desktop {
    display: none;
}

.nav-desktop ul {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-desktop li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 500;
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.nav-desktop li a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.nav-desktop li a i {
    font-size: 1rem;
    opacity: 0.7;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--secondary-color);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
.nav-mobile {
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-color);
    z-index: 999;
    display: flex;
    flex-direction: column;
    padding: 100px 2rem 2rem;
    transform: translateX(100%);
    transition: transform var(--transition-normal);
}

.nav-mobile.active {
    transform: translateX(0);
}

.nav-mobile ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-mobile li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius-lg);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--bg-light);
    transition: all var(--transition-fast);
}

.nav-mobile li a:hover,
.nav-mobile li a.active {
    background: var(--gradient-primary);
    color: white;
}

.nav-mobile li a i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

/* Tool Page Hero */
.tool-hero {
    padding: 100px 0 40px;
    background: var(--bg-color);
    border-bottom: 1px solid var(--border-color);
}

.tool-hero-content {
    display: grid;
    gap: 2rem;
    align-items: center;
}

.tool-hero-text {
    text-align: center;
}

.tool-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.tool-breadcrumb a {
    color: var(--primary-color);
}

.tool-breadcrumb a:hover {
    text-decoration: underline;
}

.tool-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-title {
    margin-bottom: 1rem;
}

.tool-description {
    font-size: 1.125rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

.tool-hero-image {
    display: none;
    max-width: 280px;
    margin-left: auto;
}

.tool-hero-image img {
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Tool Introduction Section */
.tool-intro {
    padding: 24px 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.03) 0%, rgba(6, 182, 212, 0.03) 100%);
    border-bottom: 1px solid var(--border-color);
}

.tool-intro-content {
    display: grid;
    gap: 2rem;
}

.tool-intro-card {
    background: var(--bg-color);
    border-radius: var(--border-radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.tool-intro-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.tool-intro-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.tool-intro-header h2 {
    font-size: 1.125rem;
    color: var(--secondary-color);
    margin: 0;
}

.tool-intro-header p {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0.25rem 0 0 0;
}

.tool-intro-body p {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 0.75rem;
}

.tool-intro-body p:last-child {
    margin-bottom: 0;
}

.tool-intro-features {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tool-intro-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.tool-intro-feature:hover {
    background: rgba(37, 99, 235, 0.05);
    transform: translateX(4px);
}

.tool-intro-feature i {
    width: 28px;
    height: 28px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.tool-intro-feature span {
    font-size: 0.8125rem;
    color: var(--text-color);
    line-height: 1.4;
}

@media (min-width: 768px) {
    .tool-intro-content {
        grid-template-columns: 1fr;
    }

    .tool-intro-features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tool-intro {
        padding: 40px 0;
    }
    
    .tool-intro-card {
        padding: 2rem;
    }
    
    .tool-intro-icon {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .tool-intro-header h2 {
        font-size: 1.375rem;
    }
    
    .tool-intro-body p {
        font-size: 1rem;
        line-height: 1.8;
    }
    
    .tool-intro-features {
        gap: 1rem;
    }
    
    .tool-intro-feature {
        padding: 1rem;
    }
    
    .tool-intro-feature i {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    .tool-intro-feature span {
        font-size: 0.9375rem;
    }
}

@media (min-width: 1024px) {
    .tool-intro {
        padding: 60px 0;
    }

    .tool-intro-card {
        padding: 2.5rem;
    }
    
    /* Calculator Desktop Styles */
    .tool-hero {
        padding: 120px 0 60px;
    }
    
    .tool-content {
        padding: 60px 0;
    }
    
    .calculator-section {
        padding: 2rem;
    }
    
    .calculator-header {
        margin-bottom: 2rem;
    }
    
    .calculator-header h2 {
        font-size: 1.5rem;
        gap: 0.75rem;
    }
    
    .mode-selector {
        gap: 0.5rem;
        padding: 0.5rem;
        margin-bottom: 2rem;
        border-radius: var(--border-radius-lg);
    }
    
    .mode-btn {
        min-width: 120px;
        padding: 0.75rem 1rem;
        font-size: 0.9375rem;
        border-radius: var(--border-radius-md);
    }
    
    .input-group {
        margin-bottom: 1.5rem;
    }
    
    .input-label {
        font-size: 0.9375rem;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .input-label i {
        font-size: 0.875rem;
    }
    
    .input-wrapper {
        gap: 0.5rem;
    }
    
    .input-field {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        border-radius: var(--border-radius-lg);
    }
    
    .unit-select {
        padding: 0.875rem 1rem;
        font-size: 0.9375rem;
        min-width: 100px;
        border-radius: var(--border-radius-lg);
    }
    
    .calculate-btn {
        padding: 1rem 2rem;
        font-size: 1.125rem;
        margin-top: 1.5rem;
        gap: 0.75rem;
        border-radius: var(--border-radius-lg);
    }
}

/* Main Content Layout */
.tool-content {
    padding: 30px 0;
}

.tool-layout {
    display: grid;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

/* Calculator Section */
.calculator-section {
    background: var(--bg-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 1.25rem 10px;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.calculator-header {
    margin-bottom: 1.25rem;
    text-align: center;
}

.calculator-header h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.calculator-header h2 i {
    color: var(--primary-color);
}

.calculator-header p {
    color: var(--text-light);
    margin: 0;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    padding: 0.375rem;
    background: var(--bg-light);
    border-radius: var(--border-radius-md);
    margin-bottom: 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

.mode-btn {
    flex: 1;
    min-width: 80px;
    padding: 0.5rem 0.25rem;
    border-radius: var(--border-radius-sm);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    background: transparent;
    transition: all var(--transition-fast);
    text-align: center;
    white-space: nowrap;
}

.mode-btn:hover {
    background: rgba(255, 255, 255, 0.8);
}

.mode-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

/* Input Groups */
.input-group {
    margin-bottom: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 0.375rem;
}

.input-label i {
    color: var(--primary-color);
    font-size: 0.75rem;
}

.input-wrapper {
    display: flex;
    gap: 0.575rem;
    width: 100%;
}

.input-field {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-color);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-field::placeholder {
    color: var(--text-light);
}

.unit-select {
    padding: 0.625rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-md);
    background: var(--bg-light);
    color: var(--text-color);
    cursor: pointer;
    min-width: 70px;
    max-width: 90px;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.unit-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Calculate Button */
.calculate-btn {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    background: var(--gradient-primary);
    color: white;
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.4);
    transition: all var(--transition-fast);
    margin-top: 1rem;
}

.calculate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(37, 99, 235, 0.5);
}

.calculate-btn:active {
    transform: translateY(0);
}

/* Result Section */
.result-section {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 2px solid rgba(37, 99, 235, 0.1);
    border-radius: var(--border-radius-xl);
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.result-header i {
    font-size: 1.5rem;
    color: var(--success-color);
}

.result-header h3 {
    font-size: 1.25rem;
    color: var(--secondary-color);
}

.result-value {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-color);
    border-radius: var(--border-radius-lg);
    margin-bottom: 1rem;
}

.result-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-unit {
    font-size: 1rem;
    color: var(--text-light);
}

.result-formula {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: var(--border-radius-md);
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: var(--text-color);
}

/* Info Cards */
.info-section {
    background: var(--bg-color);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2rem;
    margin-bottom: 10px;
    border: 1px solid var(--border-color);
}

.info-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-header i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.info-header h3 {
    font-size: 1.25rem;
}

.info-content p {
    font-size: 0.9375rem;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.info-content p:last-child {
    margin-bottom: 0;
}

.formula-box {
    background: var(--bg-light);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.formula-main {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 0.75rem;
}

.formula-description {
    font-size: 0.875rem;
    color: var(--text-light);
    margin: 0;
}

.info-list {
    margin: 1rem 0;
}

.info-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li i {
    color: var(--accent-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.info-list li span {
    font-size: 0.9375rem;
    color: var(--text-color);
}

/* Warning Box */
.warning-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--border-radius-lg);
    margin-top: 1.5rem;
}

.warning-box i {
    color: var(--warning-color);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.warning-box p {
    font-size: 0.875rem;
    color: var(--text-color);
    margin: 0;
}

/* Related Tools */
.related-tools {
    padding: 60px 0;
    background: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.related-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-header h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.related-grid {
    display: grid;
    gap: 1rem;
}

.related-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    transition: all var(--transition-fast);
}

.related-card:hover {
    background: var(--bg-color);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.related-card-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.related-card-content h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.related-card-content p {
    font-size: 0.8125rem;
    color: var(--text-light);
    margin: 0;
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.125rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
}

.footer-bottom-links a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom-links a:hover {
    color: white;
}

/* Responsive Styles */
@media (min-width: 640px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (min-width: 768px) {
    .tool-hero-content {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }

    .tool-hero-text {
        text-align: left;
    }

    .tool-breadcrumb {
        justify-content: flex-start;
    }

    .tool-description {
        margin: 0;
    }

    .tool-hero-image {
        display: block;
        max-width: 380px;
    }
}

@media (min-width: 1024px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-desktop {
        display: block;
    }

    .related-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
}
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}