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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: all 0.3s ease;
}

/* Theme Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --secondary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    
    --bg-primary: #0a1628;
    --bg-secondary: #1e3a5f;
    --bg-card: rgba(30, 58, 95, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-accent: #60a5fa;
    --border-color: rgba(148, 163, 184, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body.light-mode {
    --bg-primary: #f1f5f9;
    --bg-secondary: #e2e8f0;
    --bg-card: rgba(255, 255, 255, 0.9);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-accent: #3b82f6;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-color: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.1);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    min-height: 100vh;
}

/* Background Animation */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--primary-gradient);
    overflow: hidden;
}

body.light-mode .bg-animation {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.particle:nth-child(1) { 
    top: 20%; left: 20%; animation-delay: 0s; 
    background: rgba(96, 165, 250, 0.8);
    box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}
.particle:nth-child(2) { 
    top: 60%; left: 80%; animation-delay: -2s; 
    background: rgba(139, 92, 246, 0.8);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.6);
}
.particle:nth-child(3) { 
    top: 40%; left: 40%; animation-delay: -4s; 
    background: rgba(59, 130, 246, 0.8);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
}
.particle:nth-child(4) { 
    top: 80%; left: 10%; animation-delay: -1s; 
    background: rgba(147, 197, 253, 0.8);
    box-shadow: 0 0 15px rgba(147, 197, 253, 0.6);
}
.particle:nth-child(5) { 
    top: 10%; left: 90%; animation-delay: -3s; 
    background: rgba(79, 172, 254, 0.8);
    box-shadow: 0 0 15px rgba(79, 172, 254, 0.6);
}
.particle:nth-child(6) { 
    top: 70%; left: 60%; animation-delay: -5s; 
    background: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.6);
}
.particle:nth-child(7) { 
    top: 90%; left: 30%; animation-delay: -2.5s; 
    background: rgba(34, 197, 94, 0.8);
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.6);
}
.particle:nth-child(8) { 
    top: 30%; left: 70%; animation-delay: -4.5s; 
    background: rgba(236, 72, 153, 0.8);
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.6);
}
.particle:nth-child(9) { 
    top: 15%; left: 50%; animation-delay: -6s; 
    background: rgba(251, 191, 36, 0.8);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}
.particle:nth-child(10) { 
    top: 85%; left: 75%; animation-delay: -1.5s; 
    background: rgba(239, 68, 68, 0.8);
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.6);
}
.particle:nth-child(11) { 
    top: 55%; left: 15%; animation-delay: -3.5s; 
    background: rgba(16, 185, 129, 0.8);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.6);
}
.particle:nth-child(12) { 
    top: 25%; left: 85%; animation-delay: -5.5s; 
    background: rgba(245, 101, 101, 0.8);
    box-shadow: 0 0 15px rgba(245, 101, 101, 0.6);
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1); 
        opacity: 0.6; 
    }
    25% { 
        transform: translateY(-30px) rotate(90deg) scale(1.2); 
        opacity: 1; 
    }
    50% { 
        transform: translateY(-40px) rotate(180deg) scale(0.8); 
        opacity: 0.8; 
    }
    75% { 
        transform: translateY(-20px) rotate(270deg) scale(1.1); 
        opacity: 1; 
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 60px;
    height: 30px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

/* Card Controls */
.card-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    gap: 6px;
    opacity: 1;
    transition: all 0.3s ease;
    z-index: 10;
}

.profile-card:hover .card-controls,
.websites-card:hover .card-controls,
.social-card:hover .card-controls,
.skills-card:hover .card-controls,
.cta-card:hover .card-controls,
.hobbies-card:hover .card-controls,
.facts-card:hover .card-controls,
.professions-card:hover .card-controls {
    opacity: 1;
}

.control-button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    opacity: 0.8;
}

.control-button:hover {
    opacity: 1;
    transform: scale(1.1);
}

.control-button.minimize {
    background: #ffbd2e;
}

.control-button.maximize {
    background: #28ca42;
}

.control-button:hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 1px;
    background: rgba(0, 0, 0, 0.6);
}

.control-button.maximize:hover::after {
    width: 6px;
    height: 6px;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.6);
    border-radius: 0;
}

/* Tray */
.tray {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 25px;
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tray.visible {
    opacity: 1;
    visibility: visible;
}

.tray-item {
    width: 50px;
    height: 40px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-size: 0.9rem;
    color: var(--text-primary);
    flex-direction: column;
    padding: 4px;
}

.tray-item:hover {
    transform: translateY(-5px) scale(1.1);
    background: var(--primary-gradient);
    color: white;
}

.tray-item {
    position: relative;
}

.tray-item .tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 0.8rem;
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    margin-bottom: 8px;
    z-index: 1000;
}

.tray-item:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: var(--glass-border);
}

/* Glitch Effect */
.glitch {
    position: relative;
    animation: glitch 2s infinite;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    animation: glitch-1 0.5s infinite;
    color: #ff0000;
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.5s infinite;
    color: #00ff00;
    z-index: -2;
}

@keyframes glitch {
    0%, 100% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(-2px, -1px); }
    20% { transform: translate(-1px, 2px); }
    30% { transform: translate(1px, -1px); }
    40% { transform: translate(-1px, 1px); }
    50% { transform: translate(-2px, -1px); }
    60% { transform: translate(-1px, 2px); }
    70% { transform: translate(1px, -1px); }
    80% { transform: translate(-1px, 1px); }
    90% { transform: translate(1px, 2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    10% { transform: translate(1px, 0); }
    20% { transform: translate(-1px, 0); }
    30% { transform: translate(1px, 0); }
    40% { transform: translate(-1px, 0); }
    50% { transform: translate(1px, 0); }
    60% { transform: translate(-1px, 0); }
    70% { transform: translate(1px, 0); }
    80% { transform: translate(-1px, 0); }
    90% { transform: translate(1px, 0); }
}

.tray-item .card-title {
    font-size: 0.6rem;
    margin-top: 1px;
    text-align: center;
    opacity: 0.9;
    font-weight: 600;
    line-height: 1;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow-y: auto;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal-overlay.visible .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #ff5f57;
    color: white;
    transform: scale(1.1);
}

.modal-body {
    padding: 20px 30px;
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Container animations */
.card-minimized {
    display: none !important;
    transition: all 0.3s ease;
}

.card-restored {
    animation: restoreFromTray 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes restoreFromTray {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(200px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}
.sun-icon, .moon-icon {
    font-size: 12px;
    transition: all 0.3s ease;
    color: var(--text-secondary);
}

.dark-mode .moon-icon {
    color: var(--text-accent);
    transform: scale(1.2);
}

.light-mode .sun-icon {
    color: #fbbf24;
    transform: scale(1.2);
}

/* Container */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
}

/* Cards */
.profile-card,
.websites-card,
.social-card,
.skills-card,
.cta-card,
.hobbies-card,
.facts-card,
.professions-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    margin: 2rem 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px var(--shadow-color);
    transition: all 0.3s ease;
    position: relative;
}

.profile-card:hover,
.websites-card:hover,
.social-card:hover,
.skills-card:hover,
.cta-card:hover,
.hobbies-card:hover,
.facts-card:hover,
.professions-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px var(--shadow-color);
}

/* Profile Section */
.avatar {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
}

.avatar-ring {
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: var(--primary-gradient);
    border-radius: 50%;
    animation: rotate 3s linear infinite;
}

.avatar-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--text-accent);
    z-index: 2;
}

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

.name {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

body.light-mode .name {
    color: var(--text-primary);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.profession-container {
    text-align: center;
    margin-bottom: 1rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profession {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-accent);
    margin: 0;
}

.cursor {
    font-size: 1.25rem;
    color: var(--text-accent);
    animation: blink 1s infinite;
    margin-left: 2px;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.email a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.email a:hover {
    color: var(--text-accent);
    text-shadow: 0 0 10px var(--text-accent);
}

/* Websites Grid */
.websites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.website-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.website-link:hover {
    transform: translateY(-2px) scale(1.02);
    background: var(--accent-gradient);
    color: white;
    box-shadow: 0 8px 25px var(--shadow-color);
}

.website-link i {
    font-size: 1.25rem;
    width: 20px;
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    color: var(--text-primary);
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px var(--shadow-color);
}

.social-link.github:hover { background: #333; color: white; }
.social-link.email:hover { background: var(--accent-gradient); color: white; }

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.skill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.skill:hover {
    transform: translateY(-5px);
    background: var(--primary-gradient);
    color: white;
}

.skill i {
    font-size: 2rem;
}

.skill span {
    font-weight: 500;
    font-size: 0.9rem;
}

/* Call to Action */
.cta-card {
    text-align: center;
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.cta-card h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.cta-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.cta-button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Floating Contact */
.floating-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px var(--shadow-color);
    z-index: 1000;
    animation: pulse 2s infinite;
}

.floating-contact:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px var(--shadow-color);
}

@keyframes pulse {
    0% { box-shadow: 0 4px 20px var(--shadow-color); }
    50% { box-shadow: 0 4px 20px var(--shadow-color), 0 0 0 10px rgba(102, 126, 234, 0.1); }
    100% { box-shadow: 0 4px 20px var(--shadow-color); }
}

/* Hobbies Grid */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.hobby {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.5rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.hobby:hover {
    transform: translateY(-5px);
    background: var(--secondary-gradient);
    color: white;
}

.hobby i {
    font-size: 2rem;
    color: var(--text-accent);
}

.hobby:hover i {
    color: white;
}

.hobby span {
    font-weight: 500;
    font-size: 0.9rem;
    text-align: center;
}

/* Facts Section */
.fact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.fact-item:hover {
    transform: translateY(-2px);
    background: var(--accent-gradient);
    color: white;
}

.fact-item i {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.fact-item:hover i {
    color: white;
}

.fact-item p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* Professions Section */
.profession-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    backdrop-filter: blur(5px);
    transition: all 0.3s ease;
}

.profession-item:hover {
    transform: translateY(-2px);
    background: var(--primary-gradient);
    color: white;
}

.profession-item i {
    font-size: 1.5rem;
    color: var(--text-accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.profession-item:hover i {
    color: white;
}

.profession-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.profession-item:hover .profession-content h3 {
    color: white;
}

.profession-content p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-secondary);
}

.profession-item:hover .profession-content p {
    color: rgba(255, 255, 255, 0.9);
}

/* Section Headers */
h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
}

h2 i {
    color: var(--text-accent);
    font-size: 1.25rem;
}

/* Animations */
.animate-slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

.animate-slide-up:nth-child(1) { animation-delay: 0.1s; }
.animate-slide-up:nth-child(2) { animation-delay: 0.2s; }
.animate-slide-up:nth-child(3) { animation-delay: 0.3s; }
.animate-slide-up:nth-child(4) { animation-delay: 0.4s; }
.animate-slide-up:nth-child(5) { animation-delay: 0.5s; }

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
    
    .window-controls {
        top: 15px;
        left: 15px;
    }
    
    .control-button {
        width: 10px;
        height: 10px;
    }
    
    .modal-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .modal-header,
    .modal-body {
        padding: 15px 20px;
    }
    
    .profile-card,
    .websites-card,
    .social-card,
    .skills-card,
    .cta-card,
    .professions-card {
        padding: 1.5rem;
        margin: 1.5rem 0;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .websites-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .floating-contact {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .theme-toggle {
        width: 50px;
        height: 25px;
        padding: 0 6px;
    }
    
    .sun-icon, .moon-icon {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .name {
        font-size: 1.75rem;
    }
    
    .profession {
        font-size: 1.1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .hobbies-grid {
        grid-template-columns: 1fr;
    }
    
    .skill {
        padding: 1rem;
    }
    
    .hobby {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--text-accent);
    color: white;
}