/* CSS Custom Properties for Theme System */
:root {
    /* Dark Theme Colors */
    --background-color: #0a0a0a;
    --background-secondary: #1a1a1a;
    --background-card: #2a2a2a;
    --text-color: #ffffff;
    --text-secondary: #b0b0b0;
    --primary-neon: #ff00ff;
    --secondary-neon: #00ffff;
    --accent-color: #8b5cf6;
    --border-color: #333333;
    --shadow-color: rgba(255, 0, 255, 0.3);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #ff00ff, #8b5cf6);
    --gradient-secondary: linear-gradient(135deg, #00ffff, #0066ff);
    --gradient-card: linear-gradient(135deg, rgba(255, 0, 255, 0.1), rgba(139, 92, 246, 0.1));
}

/* Light Theme Override */
[data-theme="light"] {
    --background-color: #ffffff;
    --background-secondary: #f8f9fa;
    --background-card: #ffffff;
    --text-color: #1a1a1a;
    --text-secondary: #666666;
    --primary-neon: #8b5cf6;
    --secondary-neon: #06b6d4;
    --accent-color: #6366f1;
    --border-color: #e5e7eb;
    --shadow-color: rgba(139, 92, 246, 0.2);
    
    --gradient-primary: linear-gradient(135deg, #8b5cf6, #6366f1);
    --gradient-secondary: linear-gradient(135deg, #06b6d4, #3b82f6);
    --gradient-card: linear-gradient(135deg, rgba(139, 92, 246, 0.05), rgba(99, 102, 241, 0.05));
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    transition: all 0.3s ease;
    position: relative;
    overflow-x: hidden;
}

/* Starfield Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(2px 2px at 20px 30px, #fff, transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1px 1px at 90px 40px, #fff, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(2px 2px at 160px 30px, #ddd, transparent),
        radial-gradient(1px 1px at 50px 120px, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1px 1px at 180px 10px, #fff, transparent),
        radial-gradient(2px 2px at 10px 80px, rgba(255, 255, 255, 0.9), transparent),
        radial-gradient(1px 1px at 150px 60px, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1px 1px at 70px 20px, #eee, transparent);
    background-repeat: repeat;
    background-size: 200px 150px;
    animation: sparkle 25s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(1px 1px at 20px 30px, #333, transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(0, 0, 0, 0.5), transparent),
        radial-gradient(1px 1px at 90px 40px, #666, transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(0, 0, 0, 0.3), transparent),
        radial-gradient(1px 1px at 160px 30px, #999, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    opacity: 0.1;
}

@keyframes sparkle {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(-200px) translateY(-50px); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: none;
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-links {
    display: flex;
    gap: 30px;
    flex: 1;
    justify-content: center;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
}

.nav-links a:hover {
    color: var(--primary-neon);
    background: rgba(255, 0, 255, 0.1);
    transform: translateY(-2px);
}

.nav-controls {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-shrink: 0;
}

.control-btn {
    background: var(--background-card);
    border: 1px solid var(--border-color);
    color: var(--text-color);
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

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

/* Language Switcher */
.language-switcher {
    display: flex;
    background: var(--background-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
}

.lang-switch-btn {
    background: transparent;
    border: none;
    color: var(--text-color);
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 600;
    position: relative;
}

.lang-switch-btn:hover {
    background: rgba(255, 0, 255, 0.1);
    color: var(--primary-neon);
}

.lang-switch-btn.active {
    background: var(--gradient-primary);
    color: white;
}

.lang-switch-btn:not(:last-child) {
    border-right: 1px solid var(--border-color);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at center, rgba(255, 0, 255, 0.15) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 100px 100px, 150px 150px, 80px 80px, 120px 120px;
    animation: twinkle 15s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.8; }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.neon-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--primary-neon);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 0 20px var(--primary-neon)); }
    to { filter: drop-shadow(0 0 30px var(--primary-neon)); }
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

/* Code Block */
.code-block {
    background: rgba(42, 42, 42, 0.9);
    border: 1px solid var(--primary-neon);
    border-radius: 12px;
    margin: 40px auto;
    width: 600px;
    min-height: 180px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow-color);
    backdrop-filter: blur(15px);
    position: relative;
}

.code-header {
    background: rgba(26, 26, 26, 0.9);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--primary-neon);
    backdrop-filter: blur(10px);
}

.code-dots {
    display: flex;
    gap: 6px;
}

.code-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-secondary);
}

.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27ca3f; }

.code-title {
    color: var(--text-secondary);
    font-size: 14px;
}

.code-content {
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.6;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.code-line {
    display: block;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: visible;
}

.code-keyword { color: #ff79c6; }
.code-variable { color: #50fa7b; }
.code-property { color: #8be9fd; }
.code-string { color: #f1fa8c; }

.code-link {
    color: #f1fa8c;
    text-decoration: none;
    transition: all 0.3s ease;
}

.code-link:hover {
    color: var(--primary-neon);
    text-shadow: 0 0 10px var(--primary-neon);
}

/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 20px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

/* Email Container */
.email-container {
    position: relative;
    display: inline-block;
}

.email-btn {
    background: var(--gradient-primary);
}

.email-tooltip {
    position: absolute;
    bottom: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--background-card);
    border: 2px solid var(--primary-neon);
    border-radius: 12px;
    padding: 15px;
    display: none;
    white-space: nowrap;
    box-shadow: 0 10px 30px var(--shadow-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.email-tooltip.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.3s ease-out;
}

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

#email-text {
    color: var(--text-color);
    font-weight: 500;
    font-size: 14px;
}

.copy-btn {
    background: var(--gradient-secondary);
    border: none;
    color: white;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn.copied {
    background: #22c55e;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Sections */
.section {
    padding: 100px 0;
    background: 
        radial-gradient(ellipse at center, rgba(255, 0, 255, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    position: relative;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 60px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* About Section */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Client Logos */
.client-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    overflow-x: auto;
}

.client-logo {
    flex-shrink: 0;
    width: 80px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 8px;
    transition: all 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-logo:hover img {
    filter: grayscale(0%);
}

/* Experience Section */
.experience-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.experience-card {
    background: var(--gradient-card);
    border: none;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.experience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.experience-date {
    color: var(--primary-neon);
    font-weight: 600;
    margin-bottom: 15px;
}

.experience-content h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.experience-content h4 {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.responsibilities {
    margin-top: 20px;
}

.responsibilities h5 {
    color: var(--primary-neon);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.responsibilities ul {
    list-style: none;
    padding: 0;
}

.responsibilities li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 8px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.responsibilities li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--secondary-neon);
    font-size: 0.8rem;
}

/* Education Section */
.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: var(--gradient-card);
    border: none;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.education-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.education-icon {
    font-size: 3rem;
    color: var(--secondary-neon);
    margin-bottom: 20px;
}

.education-card h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.education-card h4 {
    color: var(--text-secondary);
    margin-bottom: 15px;
}

.education-year {
    color: var(--primary-neon);
    font-weight: 600;
}

/* Projects Section */
.projects-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.projects-statement {
    font-size: 1.3rem;
    color: var(--text-secondary);
    line-height: 1.8;
    background: var(--gradient-card);
    padding: 40px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 0, 255, 0.2);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.project-card {
    background: var(--gradient-card);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.project-image {
    background: var(--gradient-primary);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: white;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.project-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    background: var(--gradient-secondary);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-neon);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateX(5px);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.skill-card {
    background: var(--gradient-card);
    border: none;
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.skill-card:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Skill Card Glow Effects */
.skill-card.java:hover { box-shadow: 0 0 20px rgba(176, 114, 25, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.javascript:hover { box-shadow: 0 0 20px rgba(241, 224, 90, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.selenium:hover { box-shadow: 0 0 20px rgba(139, 0, 0, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.testng:hover { box-shadow: 0 0 20px rgba(135, 206, 235, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.cucumber:hover { box-shadow: 0 0 20px rgba(0, 100, 0, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.rest:hover { box-shadow: 0 0 20px rgba(0, 102, 204, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.postman:hover { box-shadow: 0 0 20px rgba(255, 108, 55, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.cypress:hover { box-shadow: 0 0 20px rgba(144, 238, 144, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.playwright:hover { box-shadow: 0 0 20px rgba(75, 0, 130, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.appium:hover { box-shadow: 0 0 20px rgba(255, 108, 55, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.sql:hover { box-shadow: 0 0 20px rgba(0, 0, 139, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }
.skill-card.azure:hover { box-shadow: 0 0 20px rgba(0, 120, 212, 0.6), 0 15px 30px rgba(0, 0, 0, 0.2); }

.skill-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.skill-logo {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    transition: all 0.3s ease;
}

.skill-card:hover .skill-logo {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.skill-name {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
    text-align: center;
    line-height: 1.2;
}

.skill-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* Skill Card Colors */
.skill-card.java { border-color: #b07219; }
.skill-card.java i { color: #b07219; }

.skill-card.javascript { border-color: #f1e05a; }
.skill-card.javascript i { color: #f1e05a; }

.skill-card.selenium { border-color: #8b0000; }
.skill-card.selenium i { color: #8b0000; }

.skill-card.testng { border-color: #87ceeb; }
.skill-card.testng i { color: #87ceeb; }

.skill-card.cucumber { border-color: #006400; }
.skill-card.cucumber i { color: #006400; }

.skill-card.rest { border-color: #0066cc; }
.skill-card.rest i { color: #0066cc; }

.skill-card.postman { border-color: #ff6c37; }
.skill-card.postman i { color: #ff6c37; }

.skill-card.cypress { border-color: #90ee90; }
.skill-card.cypress i { color: #90ee90; }

.skill-card.playwright { border-color: #4b0082; }
.skill-card.playwright i { color: #4b0082; }

.skill-card.appium { border-color: #ff6c37; }
.skill-card.appium i { color: #ff6c37; }
.skill-card.appium .skill-logo { 
    width: 100px; 
    height: 100px; 
}

.skill-card.sql { border-color: #00008b; }
.skill-card.sql i { color: #00008b; }

.skill-card.azure { border-color: #0078d4; }
.skill-card.azure i { color: #0078d4; }

/* Contact Section */
.contact-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.contact-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
}

.contact-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px var(--shadow-color);
}

.contact-link i {
    font-size: 1.5rem;
}

/* Footer */
.footer {
    background: var(--background-secondary);
    border-top: none;
    padding: 30px 0;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
}

/* Animation Classes */
.hidden-fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

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

/* CRITICAL FIX: Fallback for when JavaScript doesn't load */
.no-js .hidden-fade-in,
body:not(.js-loaded) .hidden-fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Show content after 2 seconds as ultimate fallback */
@keyframes showContent {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden-fade-in {
    animation: showContent 0.6s ease-out 2s forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
    }
    
    .nav-links {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-links a {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
    
    .nav-controls {
        gap: 10px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .contact-links {
        flex-direction: column;
        align-items: center;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 15px;
    }
    
    .skill-card {
        padding: 15px;
        min-height: 100px;
    }
    
    .skill-logo {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }
    
    .skill-name {
        font-size: 0.85rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .code-block {
        width: 95%;
        max-width: 600px;
    }
    
    .client-logos {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .client-logo {
        width: 70px;
        height: 45px;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .responsibilities ul {
        padding-left: 10px;
    }
    
    .responsibilities li {
        padding-left: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .code-block {
        margin: 20px auto;
        width: 95%;
        max-width: 600px;
        min-width: 280px;
    }
    
    .code-content {
        font-size: 12px;
        padding: 15px;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 12px;
    }
    
    .skill-card {
        padding: 12px;
        min-height: 90px;
    }
    
    .skill-logo {
        width: 35px;
        height: 35px;
        margin-bottom: 6px;
    }
    
    .skill-name {
        font-size: 0.8rem;
    }
    
    .language-switcher {
        font-size: 12px;
    }
    
    .lang-switch-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .client-logos {
        gap: 10px;
        padding: 15px;
    }
    
    .client-logo {
        width: 60px;
        height: 40px;
    }
    
    .experience-card {
        padding: 20px;
    }
    
    .responsibilities li {
        font-size: 0.85rem;
        padding-left: 18px;
    }
    
    .projects-statement {
        font-size: 1.1rem;
        padding: 25px;
    }
}