/* Modern Dark & Light Theme Design */
:root {
    /* Dark theme colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --bg-card: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --border-color: #333333;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 32px rgba(0, 0, 0, 0.6);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    
    /* Typography */
    --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Light theme colors */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-danger: #ef4444;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    --gradient-secondary: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

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

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow: hidden;
    height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.app-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Typography Styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.3;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
    gap: 1rem;
    position: relative;
}

/* Tab Navigation - Separate Div */
.tab-navigation {
    display: flex;
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
    padding: 0.5rem;
    gap: 0.5rem;
    width: 100%;
    max-width: 1000px;
    box-shadow: var(--shadow-lg);
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    border-radius: 12px;
    min-height: 60px;
    letter-spacing: -0.01em;
}

.tab-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--accent-primary);
    color: white;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.tab-btn i {
    font-size: 1.25rem;
}

.tab-btn span {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.content-card {
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    max-width: 1000px;
    height: 100%;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s ease;
    padding: 1rem;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.tab-pane {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    overflow-y: auto;
}

.tab-pane.active {
    opacity: 1;
    visibility: visible;
}

/* Scrollbar Styling */
.tab-pane::-webkit-scrollbar {
    width: 6px;
}

.tab-pane::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 3px;
}

.tab-pane::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 3px;
}

.tab-pane::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

/* About Tab */
.about-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

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

.profile-avatar {
    width: 90px;
    height: 120px;
    background: var(--bg-secondary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.avatar-image:hover {
    transform: scale(1.05);
}

/* Avatar Modal */
.avatar-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.avatar-modal-content {
    position: relative;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 2rem;
}

.avatar-modal-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--border-color);
    background: var(--bg-card);
    animation: scaleIn 0.3s ease;
}

.avatar-modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: white;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 2001;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.avatar-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

.profile-info h2 {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.profile-info .title {
    font-family: var(--font-primary);
    color: var(--accent-primary);
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.info-pills {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.info-pill {
    font-family: var(--font-primary);
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.info-pill.military {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.info-pill.language {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.info-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.profile-info .location {
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.about-description p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: auto;
}

.stat-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
}

/* Skills Tab */
.skills-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.skills-grid {
    display: grid;
    gap: 2rem;
}

.skill-category {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-primary);
}

.skill-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.skill-category h3 i {
    color: var(--accent-primary);
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.skill-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-family: var(--font-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    letter-spacing: -0.01em;
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Experience Tab */
.experience-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.experience-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.experience-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.company {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 0.875rem;
}

.date {
    background: var(--accent-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.experience-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Education Tab */
.education-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.education-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.education-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.education-item:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

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

.education-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.school {
    color: var(--accent-primary);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.year {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.education-details p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Projects Tab */
.projects-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateX(8px);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

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

.project-details h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.project-details p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-tech span {
    background: var(--bg-tertiary);
    color: var(--accent-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Contact Tab */
.contact-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-item {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
}

.contact-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.contact-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-link:hover {
    text-decoration: none;
    color: inherit;
}

.contact-link:active {
    transform: translateY(-4px) scale(1.01);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: white;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-text {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-all;
    overflow-wrap: break-word;
    hyphens: auto;
}

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

.social-link {
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.social-link i {
    font-size: 1.25rem;
}

/* Theme Toggle Switch - Bottom Center Position */
.theme-toggle-container {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.theme-switch {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 20px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.theme-switch-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.theme-switch-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 4px;
    overflow: hidden;
}

.theme-switch-label:hover {
    border-color: var(--accent-primary);
    box-shadow: var(--shadow-md);
}

.theme-switch-input:checked + .theme-switch-label {
    background: linear-gradient(135deg, #87ceeb 0%, #98d8e8 50%, #b0e0e6 100%);
    border-color: var(--accent-primary);
}

.theme-switch-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 0.75rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.theme-switch-input:checked + .theme-switch-label .theme-switch-slider {
    transform: translateX(30px);
    background: rgba(255, 255, 255, 0.95);
    color: #ff6b35;
}

/* Night Sky Background (Dark Mode) */
.theme-switch-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20px 10px, #ffffff, transparent),
        radial-gradient(2px 2px at 40px 15px, #ffffff, transparent),
        radial-gradient(1px 1px at 60px 8px, #ffffff, transparent),
        radial-gradient(1px 1px at 15px 25px, #ffffff, transparent),
        radial-gradient(2px 2px at 55px 30px, #ffffff, transparent),
        radial-gradient(1px 1px at 25px 35px, #ffffff, transparent),
        radial-gradient(1px 1px at 45px 20px, #ffffff, transparent),
        radial-gradient(1px 1px at 30px 12px, #ffffff, transparent);
    opacity: 0.8;
    transition: opacity 0.4s ease;
    z-index: 1;
}

/* Day Sky Background (Light Mode) */
.theme-switch-input:checked + .theme-switch-label::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(8px 8px at 60px 10px, #ffd700, transparent),
        radial-gradient(4px 4px at 20px 15px, rgba(255, 215, 0, 0.3), transparent),
        radial-gradient(3px 3px at 40px 25px, rgba(255, 215, 0, 0.2), transparent),
        radial-gradient(2px 2px at 50px 18px, rgba(255, 215, 0, 0.4), transparent);
    opacity: 0.9;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.theme-switch-label i {
    font-size: 0.75rem;
    transition: all 0.4s ease;
    z-index: 3;
}

.theme-switch-label .fa-moon {
    margin-left: 6px;
    color: #667eea;
}

.theme-switch-label .fa-sun {
    margin-right: 6px;
    color: #ff6b35;
}

/* Dark theme - moon icon visible, sun icon hidden */
.theme-switch-input:not(:checked) + .theme-switch-label .fa-moon {
    opacity: 1;
}

.theme-switch-input:not(:checked) + .theme-switch-label .fa-sun {
    opacity: 0.3;
}

/* Light theme - sun icon visible, moon icon hidden */
.theme-switch-input:checked + .theme-switch-label .fa-moon {
    opacity: 0.3;
}

.theme-switch-input:checked + .theme-switch-label .fa-sun {
    opacity: 1;
}

.theme-switch-input:checked + .theme-switch-label .fa-sun {
    color: white;
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
        gap: 0;
        padding-bottom: 80px; /* Space for bottom navigation */
    }
    
    .content-card {
        max-height: none;
        height: calc(100vh - 100px);
        margin-bottom: 0;
    }
    
    .tab-navigation {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        border-radius: 20px 20px 0 0;
        margin: 0;
        z-index: 1000;
        background: var(--bg-secondary);
        border: 1px solid var(--border-color);
        border-bottom: none;
        box-shadow: var(--shadow-xl);
    }
    
    .tab-btn {
        flex: 1;
        min-height: 60px;
        padding: 0.5rem;
        border-radius: 0;
    }
    
    .tab-btn:hover {
        transform: none;
    }
    
    .tab-btn.active {
        transform: none;
        background: var(--accent-primary);
    }
    
    .about-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-avatar {
        width: 75px;
        height: 100px;
    }
    
    .info-pills {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .education-item,
    .project-card {
        flex-direction: column;
        text-align: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .theme-toggle-container {
        bottom: 0.5rem;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .theme-switch {
        width: 50px;
        height: 25px;
    }
    
    .theme-switch-slider {
        width: 17px;
        height: 17px;
    }
    
    .theme-switch-input:checked + .theme-switch-label .theme-switch-slider {
        transform: translateX(25px);
    }
}

@media (max-width: 480px) {
    .main-content {
        padding-bottom: 70px;
    }
    
    .content-card {
        height: calc(100vh - 90px);
    }
    
    .tab-pane {
        padding: 1rem;
    }
    
    .tab-btn span {
        display: none;
    }
    
    .tab-btn {
        padding: 0.5rem;
        min-height: 50px;
    }
    
    .theme-switch {
        width: 45px;
        height: 22px;
    }
    
    .theme-switch-slider {
        width: 14px;
        height: 14px;
    }
    
    .theme-switch-input:checked + .theme-switch-label .theme-switch-slider {
        transform: translateX(23px);
    }
} 