/* ===============================================
   PREMIUM CALCULATOR - COMPLETE STYLES V2.0
   =============================================== */

/* === CSS VARIABLES === */
:root {
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-secondary: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --accent: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-hover: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    --border: #e2e8f0;
    --shadow: rgba(102, 126, 234, 0.4);
    --shadow-lg: rgba(102, 126, 234, 0.6);
    --display-bg: linear-gradient(135deg, #1e3a8a 0%, #1e293b 100%);
    --display-text: #10b981;
    --button-bg: #f8fafc;
    --button-hover: #e2e8f0;
    --operator-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --operator-text: #ffffff;
    --history-bg: #f1f5f9;
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(255, 255, 255, 0.3);
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    --bg-secondary: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e0;
    --accent: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --accent-hover: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --border: #475569;
    --shadow: rgba(99, 102, 241, 0.3);
    --shadow-lg: rgba(99, 102, 241, 0.5);
    --display-bg: linear-gradient(135deg, #0f172a 0%, #020617 100%);
    --display-text: #34d399;
    --button-bg: #334155;
    --button-hover: #475569;
    --operator-bg: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --operator-text: #ffffff;
    --history-bg: #1e293b;
    --glass-bg: rgba(30, 41, 59, 0.95);
    --glass-border: rgba(148, 163, 184, 0.2);
}

/* === BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0 0 0; /* CHANGED: No side padding, no bottom padding */
    margin: 0; /* ADD THIS: Remove default margin */
    transition: all 0.4s ease;
    overflow-x: hidden; /* ADD THIS: Prevent horizontal scroll */
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(120, 119, 198, 0.3), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(138, 43, 226, 0.3), transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(72, 187, 120, 0.2), transparent 50%);
    animation: particleMove 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.container {
    width: 100%;
    max-width: 550px;
    position: relative;
    z-index: 1;
    flex: 1; /* Takes available space, pushes footer down */
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 32px;
    box-shadow: 0 25px 50px -12px var(--shadow), 0 0 0 1px var(--glass-border);
    transition: all 0.4s ease;
    animation: fadeInUp 0.6s ease;
}

.calculator-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 35px 60px -15px var(--shadow-lg);
}

/* === TOP BAR === */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.mode-switches {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mode-btn {
    font-size: 28px;
    background: var(--button-bg);
    border: 3px solid transparent;
    border-radius: 20px;
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    filter: grayscale(100%) opacity(0.5);
}

.mode-btn:hover {
    transform: translateY(-3px);
    filter: grayscale(50%) opacity(0.8);
}

.mode-btn.active {
    filter: grayscale(0%) opacity(1);
    background: var(--operator-bg);
    box-shadow: 0 8px 20px var(--shadow-lg);
    animation: pulse 2s infinite;
}

.theme-toggle {
    font-size: 28px;
    background: var(--button-bg);
    border: none;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    transform: rotate(180deg) scale(1.15);
}

/* === DISPLAY === */
.display {
    background: var(--display-bg);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.display::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: displayShine 3s linear infinite;
}

.display-input {
    color: #e2e8f0;
    font-size: 18px;
    margin-bottom: 10px;
    word-wrap: break-word;
    text-align: right;
    width: 100%;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

[data-theme="dark"] .display-input {
    color: #cbd5e0;
}

.display-result {
    color: var(--display-text);
    font-size: 42px;
    font-weight: 700;
    word-wrap: break-word;
    text-align: right;
    width: 100%;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(16, 185, 129, 0.5);
}

/* === INPUT SECTION === */
.input-section {
    position: relative;
    margin-bottom: 20px;
}

.calculator-input {
    width: 100%;
    padding: 16px 50px 16px 20px;
    border-radius: 16px;
    border: 3px solid #667eea;
    background: #ffffff;
    color: #1a202c;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

[data-theme="dark"] .calculator-input {
    border: 3px solid #6366f1;
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.calculator-input::placeholder {
    color: #64748b;
    opacity: 0.8;
}

[data-theme="dark"] .calculator-input::placeholder {
    color: #94a3b8;
    opacity: 0.7;
}

.calculator-input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 6px 20px rgba(118, 75, 162, 0.5);
    transform: translateY(-2px);
}

[data-theme="dark"] .calculator-input:focus {
    border-color: #8b5cf6;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.input-clear-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.input-clear-btn:hover {
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
}

.input-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

/* === CALCULATOR VIEWS === */
.calculator-view {
    display: none;
}

.calculator-view.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* === BUTTON GRID === */
.button-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.normal-grid {
    grid-template-columns: repeat(4, 1fr);
}

.scientific-grid {
    grid-template-columns: repeat(5, 1fr);
}

.calc-btn {
    background: var(--button-bg);
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 22px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    user-select: none;
}

.calc-btn:hover {
    background: var(--button-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px var(--shadow);
}

.calc-btn:active {
    transform: translateY(0) scale(0.98);
}

.operator {
    background: var(--operator-bg);
    color: var(--operator-text);
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow);
}

.operator:hover {
    background: var(--accent-hover);
    box-shadow: 0 10px 25px var(--shadow-lg);
}

.span-2 {
    grid-column: span 2;
}

/* === FORMULA SECTION === */
.formula-section {
    margin-bottom: 24px;
}

.subject-select, .formula-select {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: 2px solid var(--border);
    background: var(--button-bg);
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.subject-select:hover, .formula-select:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.subject-select:focus, .formula-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow);
}

.formula-inputs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

.input-group input {
    padding: 16px;
    border-radius: 12px;
    border: 2px solid var(--border);
    background: var(--button-bg);
    color: var(--text-primary);
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--shadow);
    transform: translateY(-2px);
}

.formula-calculate {
    width: 100%;
    padding: 18px;
    background: var(--operator-bg);
    color: var(--operator-text);
    border: none;
    border-radius: 16px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
    box-shadow: 0 8px 20px var(--shadow);
}

.formula-calculate:hover {
    background: var(--accent-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--shadow-lg);
}

.formula-calculate:active {
    transform: translateY(0);
}

.formula-info {
    background: var(--history-bg);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
    border-left: 4px solid var(--accent);
}

.formula-info strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 8px;
}

/* === HISTORY === */
.history-section {
    margin-top: 24px;
    background: var(--history-bg);
    border-radius: 20px;
    padding: 20px;
    max-height: 350px;
    overflow-y: auto;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.1);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.history-header h3 {
    font-size: 20px;
    color: var(--text-primary);
}

.clear-history {
    background: var(--button-bg);
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.clear-history:hover {
    background: var(--button-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.clear-history:active {
    transform: translateY(0);
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.history-item {
    padding: 14px;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
    animation: slideInHistory 0.3s ease;
}

.history-item:hover {
    border-left-color: var(--accent);
    transform: translateX(5px);
    background: var(--button-hover);
    box-shadow: 0 2px 8px var(--shadow);
}

.history-item:active {
    transform: translateX(5px) scale(0.98);
}

.history-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px;
    font-style: italic;
}

/* === HELP BUTTON === */
/* === ENHANCED HELP BUTTON === */
.help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #667eea; /* Bright blue border */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Pulsing notification dot */
.help-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #10b981; /* Green notification */
    border: 3px solid var(--bg-secondary);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

/* Wiggle animation on hover */
.help-btn:hover {
    animation: wiggle 0.7s ease-in-out;
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

@keyframes wiggle {
    0% { transform: rotate(0deg) scale(1.1); }
    25% { transform: rotate(-15deg) scale(1.15); }
    50% { transform: rotate(15deg) scale(1.15); }
    75% { transform: rotate(-10deg) scale(1.15); }
    100% { transform: rotate(0deg) scale(1.1); }
}

/* Active state */
.help-btn:active {
    transform: scale(1.05);
}

/* Light mode adjustments */
body:not([data-theme="dark"]) .help-btn {
    border-color: #667eea;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.7);
}

body:not([data-theme="dark"]) .help-btn::before {
    border-color: #ffffff;
}

/* Dark mode */
[data-theme="dark"] .help-btn {
    border-color: #818cf8;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

/* Floating animation (optional - adds constant motion) */
.help-btn {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Override float on hover to allow wiggle */
.help-btn:hover {
    animation: wiggle 0.7s ease-in-out;
}

/* === KEYBOARD SHORTCUTS MODAL === */
.shortcuts-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.shortcuts-modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.shortcuts-content {
    background: var(--bg-secondary);
    border-radius: 24px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
}

.shortcuts-content h3 {
    margin-bottom: 24px;
    color: var(--text-primary);
    font-size: 24px;
    padding-right: 40px;
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--button-bg);
    color: var(--text-primary);
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    background: var(--button-hover);
    transform: scale(1.1);
}

.close-modal:active {
    transform: scale(0.95);
}

.shortcuts-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.shortcut-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--button-bg);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.shortcut-item:hover {
    background: var(--button-hover);
    transform: translateX(5px);
}

.shortcut-item kbd {
    background: var(--operator-bg);
    color: var(--operator-text);
    padding: 6px 12px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 2px 4px var(--shadow);
    min-width: 60px;
    text-align: center;
}

.shortcut-item span {
    color: var(--text-secondary);
    font-weight: 500;
    flex: 1;
    text-align: right;
    margin-left: 16px;
}

.shortcuts-tip {
    background: var(--history-bg);
    padding: 16px;
    border-radius: 12px;
    border-left: 4px solid var(--accent);
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.shortcuts-tip strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 6px;
}

/* === SCROLLBAR === */
.history-section::-webkit-scrollbar,
.shortcuts-content::-webkit-scrollbar {
    width: 10px;
}

.history-section::-webkit-scrollbar-track,
.shortcuts-content::-webkit-scrollbar-track {
    background: var(--button-bg);
    border-radius: 10px;
}

.history-section::-webkit-scrollbar-thumb,
.shortcuts-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 10px;
}

.history-section::-webkit-scrollbar-thumb:hover,
.shortcuts-content::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideInHistory {
    from {
        opacity: 0;
        transform: translateX(-15px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% { 
        box-shadow: 0 8px 20px var(--shadow-lg); 
    }
    50% { 
        box-shadow: 0 8px 30px var(--shadow-lg), 0 0 0 4px var(--glass-border); 
    }
}

@keyframes particleMove {
    0%, 100% { 
        transform: translate(0, 0) scale(1); 
    }
    33% { 
        transform: translate(50px, -50px) scale(1.1); 
    }
    66% { 
        transform: translate(-50px, 50px) scale(0.9); 
    }
}

@keyframes displayShine {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.3); }
    20%, 40% { transform: scale(1); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* === RESPONSIVE === */
@media (max-width: 600px) {
    .calculator-card { 
        padding: 16px; 
    }
    
    .mode-btn { 
        font-size: 22px; 
        padding: 8px 14px; 
    }
    
    .display { 
        padding: 20px; 
        min-height: 80px; 
    }
    
    .display-result { 
        font-size: 32px; 
    }
    
    .calc-btn { 
        padding: 14px 8px;
        font-size: 14px; 
        border-radius: 12px;
    }
    
    .scientific-grid { 
        grid-template-columns: repeat(5, 1fr);
        gap: 8px;
    }
    
    .scientific-grid .calc-btn {
        padding: 12px 4px;
        font-size: 13px;
    }
    
    .calculator-input {
        font-size: 16px;
        padding: 14px 45px 14px 16px;
    }
    
    .input-clear-btn {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    body { 
        padding: 8px; 
    }
    
    .calculator-card { 
        padding: 12px; 
        border-radius: 24px;
    }
    
    .mode-btn { 
        font-size: 20px; 
        padding: 6px 10px; 
    }
    
    .display-result { 
        font-size: 28px; 
    }
    
    .display-input {
        font-size: 14px;
    }
    
    .calc-btn { 
        padding: 12px 6px; 
        font-size: 13px; 
    }
    
    .scientific-grid {
        gap: 6px;
    }
    
    .scientific-grid .calc-btn {
        padding: 10px 2px;
        font-size: 12px;
    }
    
    .calculator-input {
        font-size: 15px;
        padding: 12px 40px 12px 14px;
    }
    
    .button-grid {
        gap: 8px;
    }
}

@media (max-width: 360px) {
    .scientific-grid .calc-btn {
        padding: 8px 2px;
        font-size: 11px;
    }
}

/* ===============================================
   PREMIUM FULL-WIDTH FOOTER WITH EFFECTS
   =============================================== */

/* Subtle Footer Divider Line (Less Distracting) */
.footer-divider {
    width: 100%;
    height: 1px; /* Thinner */
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(102, 126, 234, 0.3) 30%, 
        rgba(118, 75, 162, 0.3) 70%, 
        transparent
    );
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.2); /* Softer glow */
    margin-bottom: 0;
    /* Remove animation for cleaner look */
}

/* Main Footer Container */
.site-footer {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: auto;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    transition: all 0.4s ease;
}

/* Light mode - darker background for visibility */
body:not([data-theme="dark"]) .site-footer {
    background: rgba(30, 41, 59, 0.85);
    border-top: 1px solid rgba(100, 116, 139, 0.2);
}

[data-theme="dark"] .site-footer {
    background: rgba(10, 15, 30, 0.8);
}

/* Hover effect on entire footer */
.site-footer:hover {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 -5px 30px rgba(102, 126, 234, 0.2);
}

body:not([data-theme="dark"]) .site-footer:hover {
    background: rgba(30, 41, 59, 0.95);
    box-shadow: 0 -5px 30px rgba(102, 126, 234, 0.15);
}

/* Footer Content Grid */
.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    position: relative;
}

/* Animated background particles effect */
.footer-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03), transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(118, 75, 162, 0.03), transparent 50%);
    animation: particleFloat 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes particleFloat {
    0%, 100% { opacity: 0.3; transform: translateY(0); }
    50% { opacity: 0.6; transform: translateY(-5px); }
}

/* Left Side - Creator + Buttons */
.footer-left {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.footer-text {
    font-size: 14px;
    color: #cbd5e0; /* Light for dark mode */
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Light mode text - much darker for visibility */
body:not([data-theme="dark"]) .footer-text {
    color: #f1f5f9; /* Very light, almost white */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Shadow for contrast */
}

.footer-text strong {
    font-weight: 800;
    color: #ffffff; /* Pure white - always visible */
    text-shadow: 0 2px 8px rgba(102, 126, 234, 0.6), 0 0 20px rgba(118, 75, 162, 0.4);
    transition: all 0.3s ease;
}

/* Enhanced glow on hover */
.footer-left:hover .footer-text strong {
    color: #ffffff;
    text-shadow: 0 2px 12px rgba(102, 126, 234, 0.9), 0 0 30px rgba(118, 75, 162, 0.7);
}

/* Enhanced gradient on hover */
.footer-left:hover .footer-text strong {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

[data-theme="dark"] .footer-text strong {
    background: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

[data-theme="dark"] .footer-left:hover .footer-text strong {
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    background-clip: text;
    -webkit-background-clip: text;
}

.heart {
    color: #e74c3c;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    10%, 30% { transform: scale(1.25); }
    20%, 40% { transform: scale(1); }
}

/* Footer Buttons with Enhanced Effects */
.footer-buttons {
    display: flex;
    gap: 10px;
}

.footer-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(30, 41, 59, 0.5);
    color: #cbd5e0;
    border: 1.5px solid rgba(148, 163, 184, 0.3);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

/* Light mode buttons */
body:not([data-theme="dark"]) .footer-btn {
    background: rgba(51, 65, 85, 0.6);
    color: #f1f5f9;
    border-color: rgba(100, 116, 139, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Shine effect on hover */
.footer-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;
}

.footer-btn:hover::before {
    left: 100%;
}

.footer-btn:hover {
    background: var(--operator-bg);
    color: var(--operator-text);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.footer-btn:active {
    transform: translateY(-1px);
}

.footer-btn svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.footer-btn:hover svg {
    transform: scale(1.2) rotate(5deg);
}

/* Right Side - Company + Tech */
.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

/* .company-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(102, 126, 234, 0.5);
    cursor: default;
}

NO hover effect - completely static

Remove all ::before and :hover sections for .company-name */

.company-name {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.3px;
    white-space: nowrap;
    transition: all 0.3s ease;
    cursor: default;
    text-shadow: 0 2px 6px rgba(102, 126, 234, 0.5);
}

/* Subtle glow on hover - NO shine sweep */
.footer-right:hover .company-name {
    color: #ffffff;
    text-shadow: 
        0 3px 12px rgba(102, 126, 234, 0.9), 
        0 0 25px rgba(118, 75, 162, 0.7);
    transform: translateY(-2px);
}

/* REMOVE THESE - DELETE OR COMMENT OUT:
.company-name::before {
    ...delete this...
}

.footer-right:hover .company-name::before {
    ...delete this...
}
*/


/* Tech Pills with Enhanced Hover */
.footer-tech {
    display: flex;
    gap: 8px;
}

.tech-pill {
    padding: 5px 12px;
    background: rgba(30, 41, 59, 0.6);
    color: #cbd5e0;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer; /* Changed from default to pointer */
    position: relative;
    overflow: hidden;
}

body:not([data-theme="dark"]) .tech-pill {
    background: rgba(51, 65, 85, 0.7);
    color: #f1f5f9;
    border-color: rgba(100, 116, 139, 0.4);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Shine sweep effect - SAME AS BUTTONS */
.tech-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tech-pill:hover::before {
    left: 100%;
}

/* Enhanced hover - SAME AS BUTTONS */
.tech-pill:hover {
    background: var(--operator-bg);
    color: var(--operator-text);
    border-color: transparent;
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 6px 20px var(--shadow-lg);
}

.tech-pill:active {
    transform: translateY(-2px) scale(1.05);
}

.version-pill {
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 3px 10px var(--shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; /* Changed to pointer */
    position: relative;
    overflow: hidden;
}

/* Shine effect - SAME AS BUTTONS */
.version-pill::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.version-pill:hover::before {
    left: 100%;
}

/* Enhanced hover - SAME AS BUTTONS */
.version-pill:hover {
    background: linear-gradient(135deg, #5568d3 0%, #6a3f8f 100%);
    transform: translateY(-4px) rotate(3deg) scale(1.08);
    box-shadow: 0 8px 25px var(--shadow-lg);
}

.version-pill:active {
    transform: translateY(-2px) rotate(1deg) scale(1.05);
}

/* Copyright with Fade Effect */
.footer-copyright {
    text-align: center;
    padding: 16px 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    font-size: 12px;
    color: #94a3b8;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Light mode copyright */
body:not([data-theme="dark"]) .footer-copyright {
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.footer-copyright:hover {
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-primary);
}

.footer-copyright strong {
    color: var(--text-primary);
    font-weight: 700;
}

body:not([data-theme="dark"]) .footer-copyright strong {
    color: #ffffff;
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
    }
    
    .footer-left {
        flex-direction: column;
        gap: 12px;
    }
    
    .footer-right {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        padding: 20px;
        gap: 20px;
    }
    
    .footer-left,
    .footer-right {
        width: 100%;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-text {
        white-space: normal;
    }
    
    .footer-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .footer-tech {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .site-footer {
        margin-top: 40px;
    }
    
    .footer-content {
        padding: 16px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .company-name {
        font-size: 14px;
    }
    
    .footer-buttons {
        flex-direction: column;
        gap: 8px;
    }
    
    .footer-btn {
        width: 100%;
        justify-content: center;
    }
}
