@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* CSS Variables for Light/Dark Theme */
:root {
    --bg-primary: linear-gradient(135deg, #f2f2f7 0%, #e5e5ea 100%);
    --bg-secondary: rgba(255, 255, 255, 0.7);
    --bg-card: rgba(255, 255, 255, 0.5);
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --text-tertiary: #c7c7cc;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.05);
    --particle-color: rgba(255, 255, 255, 0.15);
    --gradient-accent: rgba(120, 119, 198, 0.15);
    --accent-blue: #007AFF;
    --accent-green: #30D158;
    --accent-orange: #FF9500;
    --accent-purple: #BF5AF2;
}

[data-theme="dark"] {
    --bg-primary: linear-gradient(135deg, #1c1c1e 0%, #2c2c2e 100%);
    --bg-secondary: rgba(58, 58, 60, 0.6);
    --bg-card: rgba(72, 72, 74, 0.4);
    --text-primary: #f2f2f7;
    --text-secondary: #aeaeb2;
    --text-tertiary: #8e8e93;
    --border-color: rgba(84, 84, 88, 0.4);
    --shadow-color: rgba(0, 0, 0, 0.4);
    --particle-color: rgba(255, 255, 255, 0.08);
    --gradient-accent: rgba(120, 119, 198, 0.25);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1, 'pnum' 1, 'tnum' 0, 'onum' 1, 'lnum' 0, 'dlig' 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-optical-sizing: auto;
    background: var(--bg-primary);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text-primary);
    position: relative;
    transition: background 0.3s ease, color 0.3s ease;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
}

/* iOS safe area support */
@supports (-webkit-overflow-scrolling: touch) {
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ensure page always starts at top */
html {
    scroll-behavior: smooth;
}

body {
    scroll-behavior: auto;
}

/* Icon styling */
.feather {
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

/* Theme Toggle */
.theme-toggle-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
}

.theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    border-radius: 20px;
    padding: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    will-change: transform;
}

.theme-toggle:hover {
    transform: scale(1.05);
    background: var(--bg-card);
}

.toggle-track {
    width: 56px;
    height: 32px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 16px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-theme="dark"] .toggle-track {
    background: rgba(142, 142, 147, 0.3);
}

.toggle-thumb {
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 14px;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(24px);
    background: #2c2c2e;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08);
}


.sun-icon,
.moon-icon {
    width: 14px;
    height: 14px;
    stroke: white;
    position: absolute;
    transition: all 0.3s ease;
}

.sun-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

.social-link .feather {
    width: 1rem;
    height: 1rem;
}

.location .feather {
    width: 1rem;
    height: 1rem;
    vertical-align: middle;
    margin-right: 0.3rem;
    margin-top: -2px;
}

/* Simplified background - much better performance */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 25% 25%, var(--gradient-accent) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: background 0.3s ease;
}

/* Simplified particles for better performance */
.bg-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: var(--particle-color);
    border: 1px solid var(--border-color);
    animation: simpleFloat 6s ease-in-out infinite;
    transition: background 0.3s ease, border-color 0.3s ease;
}

@keyframes simpleFloat {
    0%, 100% { 
        transform: translateY(0px) scale(1); 
        opacity: 0.3; 
    }
    50% { 
        transform: translateY(-40px) scale(1.1); 
        opacity: 0.6; 
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    50% { transform: translateY(-20px) rotate(180deg); opacity: 1; }
}

/* Optimized Apple Liquid Glass */
.glass-card {
    background: color-mix(in srgb, var(--bg-secondary), transparent 20%);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 0.5px solid var(--border-color);
    border-radius: 24px;
    box-shadow: 
        0 8px 32px color-mix(in srgb, var(--shadow-color), transparent 50%),
        0 1px 0 color-mix(in srgb, white, transparent 90%) inset,
        0 -1px 0 color-mix(in srgb, black, transparent 95%) inset;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: default;
}

.glass-card::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.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

.glass-card:hover {
    transform: translateY(-2px) scale(1.001);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 12px 40px color-mix(in srgb, var(--shadow-color), transparent 30%),
        0 1px 0 color-mix(in srgb, white, transparent 85%) inset,
        0 -1px 0 color-mix(in srgb, black, transparent 90%) inset;
    border-color: var(--border-color);
}

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

/* Header Section */
.header {
    text-align: center;
    margin: 2rem 2rem 4rem 2rem;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #007AFF 0%, #5856D6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 12px 40px rgba(0, 122, 255, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    will-change: transform;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}

.profile-fallback {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.profile-photo::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 
        0 16px 50px rgba(0, 122, 255, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.name {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
    background: linear-gradient(135deg, 
        var(--text-primary) 0%, 
        var(--text-secondary) 50%, 
        var(--text-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px var(--shadow-color);
    transition: all 0.3s ease;
}

.location {
    font-size: 1.2rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.job-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 2rem;
    transition: color 0.3s ease;
}

.company-name {
    color: #007AFF;
    font-weight: 700;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: -0.005em;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.social-link:hover {
    background: var(--bg-card);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 6px 20px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--border-color);
}

/* Main Content Layout */
.main-content {
    margin: 0 2rem 4rem 2rem;
}

/* Experience and Projects Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    align-items: start;
}

.content-grid .pillar {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Skills Pillar - Full Width */
.skills-pillar {
    margin-bottom: 0;
    padding: 2.5rem;
    min-height: auto;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    align-items: start;
}

.pillar {
    padding: 2.5rem;
    min-height: auto;
    height: fit-content;
}

.pillar-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    letter-spacing: -0.015em;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.pillar-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #007AFF, transparent);
    border-radius: 2px;
}

/* Optimized Experience Items */
.experience-item, .skill-item, .project-item {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    cursor: default;
    box-shadow: 
        0 4px 16px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    will-change: transform;
}

.experience-item:hover, .skill-item:hover, .project-item:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: 
        0 6px 24px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--border-color);
}

.item-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    transition: color 0.3s ease;
}

.item-subtitle {
    font-size: 1rem;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.item-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    transition: color 0.3s ease;
}

/* Skills specific styling - iOS Control Center Style */
.skill-level {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.skill-indicator {
    width: 100px;
    height: 60px;
    position: relative;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

[data-theme="dark"] .skill-indicator {
    background: rgba(72, 72, 74, 0.3);
    border-color: rgba(142, 142, 147, 0.2);
}

.skill-fill {
    height: 100%;
    border-radius: 15px;
    position: relative;
    transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.skill-fill::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    border-radius: 15px;
}

.skill-fill.expert {
    background: linear-gradient(135deg, #007AFF 0%, #0051D5 100%);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.skill-fill.advanced {
    background: linear-gradient(135deg, #34C759 0%, #248A3D 100%);
    box-shadow: 0 4px 12px rgba(52, 199, 89, 0.3);
}

.skill-fill.learning {
    background: linear-gradient(135deg, #FF9500 0%, #FF6B00 100%);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
    animation: learningPulse 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes learningPulse {
    0% { 
        width: 30%;
        opacity: 0.7;
        transform: scale(1);
    }
    50% { 
        width: 75%;
        opacity: 1;
        transform: scale(1.01);
    }
    100% { 
        width: 30%;
        opacity: 0.7;
        transform: scale(1);
    }
}

.skill-percentage-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.skill-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.skill-level-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.skill-indicator:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .skill-indicator:hover {
    box-shadow: 0 4px 16px rgba(255, 255, 255, 0.08);
}

/* Hide old elements */
.skill-ring, .skill-percentage, .skill-bar {
    display: none;
}

/* Projects specific styling */
.project-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.project-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.project-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px var(--shadow-color);
    will-change: transform;
}

.project-link:hover {
    background: #007AFF;
    color: white;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
    border-color: rgba(0, 122, 255, 0.5);
}

.project-link .feather {
    width: 14px;
    height: 14px;
}

.tag {
    padding: 0.4rem 0.8rem;
    background: rgba(0, 122, 255, 0.15);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 16px;
    font-size: 0.8rem;
    color: #007AFF;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 122, 255, 0.1);
}

.tag:hover {
    background: rgba(0, 122, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 122, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .theme-toggle-container {
        top: calc(1rem + env(safe-area-inset-top));
        right: 1rem;
    }
    
    /* iOS-style cards on mobile */
    .glass-card {
        margin: 0 -0.5rem;
        border-radius: 16px;
        border-left: none;
        border-right: none;
    }
    
    .header, .main-content .glass-card {
        margin: 0 0.5rem 1rem 0.5rem;
        border-radius: 20px;
        border: 0.5px solid var(--border-color);
    }
    
    .header {
        margin: 2rem 1rem 2rem 1rem;
        padding: 2rem 1.5rem;
    }
    
    .main-content {
        margin: 0 1rem 2rem 1rem;
    }
    
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .pillar {
        padding: 2rem 1rem;
        min-height: auto;
    }
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Apple-style loading states */
.skeleton {
    background: linear-gradient(90deg, 
        color-mix(in srgb, var(--text-tertiary), transparent 80%) 25%, 
        color-mix(in srgb, var(--text-tertiary), transparent 60%) 50%, 
        color-mix(in srgb, var(--text-tertiary), transparent 80%) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Footer */
.footer {
    margin: 4rem 2rem 2rem 2rem;
    padding: 3rem 2.5rem 2rem 2.5rem;
    border-radius: 24px;
    background: var(--bg-secondary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    box-shadow: 
        0 8px 32px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* Reduce cursor effect sensitivity for footer */
    will-change: auto;
}

/* Override mouse interaction for footer specifically */
.footer:hover {
    transform: translateY(-2px);
}

.footer::before {
    display: none;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 8px;
    position: relative;
}

.footer-link:hover {
    color: #007AFF;
    transform: translateX(4px);
}

.footer-link i {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: transform 0.2s ease;
}

.footer-link:hover i {
    transform: scale(1.1);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright p {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin: 0;
    transition: color 0.3s ease;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-version {
    padding: 0.25rem 0.75rem;
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid rgba(0, 122, 255, 0.2);
    border-radius: 12px;
    color: #007AFF;
    font-weight: 600;
    font-size: 0.75rem;
}

/* Live Activity Styling */
.footer .live-activity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.8rem;
    box-shadow: 
        0 2px 8px var(--shadow-color),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34C759 !important;
    box-shadow: 0 0 0 2px rgba(52, 199, 89, 0.3);
    animation: statusPulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes statusPulse {
    0%, 100% { 
        transform: scale(1); 
        opacity: 1; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.8; 
    }
}

.footer-divider {
    color: var(--text-tertiary);
    opacity: 0.5;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-location i {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Monospace font for time display */
#cet-time {
    font-family: 'Inter', 'SF Mono', 'Monaco', 'Cascadia Code', 'JetBrains Mono', 'Fira Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "kern" 1;
    letter-spacing: 0.025em;
    font-weight: 500;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer {
        margin: 2rem 1rem 1rem 1rem;
        padding: 2rem 1.5rem 1.5rem 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-legal {
        justify-content: center;
    }
}
