/* CSS Variables for Theme System */
:root {
    /* Light Theme Colors (Default) */
    --bg-primary: #f7fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #edf2f7;
    --bg-header: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-footer: linear-gradient(135deg, #2d3748 0%, #4a5568 100%);
    
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #ffffff;
    
    --border-color: #e2e8f0;
    --border-hover: #667eea;
    
    --shadow-light: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-medium: 0 20px 25px rgba(0,0,0,0.1);
    --shadow-heavy: 0 20px 25px rgba(0,0,0,0.15);
    
    --accent-primary: #667eea;
    --accent-secondary: #764ba2;
    --accent-success: #48bb78;
    --accent-warning: #f59e0b;
    --accent-gold: #fbbf24;
    
    --card-bg: #ffffff;
    --card-hover: #f7fafc;
    --timeline-bg: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    --mission-bg: linear-gradient(135deg, #fef5e7 0%, #fed7aa 100%);
}

[data-theme="dark"] {
    /* Dark Theme Colors */
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --bg-header: linear-gradient(135deg, #1e40af 0%, #7c3aed 100%);
    --bg-footer: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-light: #ffffff;
    
    --border-color: #475569;
    --border-hover: #3b82f6;
    
    --shadow-light: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-medium: 0 20px 25px rgba(0,0,0,0.4);
    --shadow-heavy: 0 20px 25px rgba(0,0,0,0.5);
    
    --accent-primary: #3b82f6;
    --accent-secondary: #8b5cf6;
    --accent-success: #10b981;
    --accent-warning: #f59e0b;
    --accent-gold: #fbbf24;
    
    --card-bg: #1e293b;
    --card-hover: #334155;
    --timeline-bg: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    --mission-bg: linear-gradient(135deg, #1e293b 0%, #475569 100%);
}

/* Theme Toggle Button */
.theme-toggle {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    z-index: 9999 !important;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    visibility: visible !important;
    opacity: 1 !important;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-medium);
}

.theme-toggle svg {
    width: 20px !important;
    height: 20px !important;
    color: var(--text-secondary);
    transition: all 0.3s ease;
    min-width: 20px !important;
    min-height: 20px !important;
    flex-shrink: 0 !important;
    object-fit: contain !important;
}

.theme-toggle:hover svg {
    color: var(--accent-primary);
}

/* Icon visibility logic - IMPORTANT: These styles must not be overridden */
.theme-toggle .moon-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 20px !important;
    height: 20px !important;
}

.theme-toggle .sun-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 20px !important;
    height: 20px !important;
}

/* Dark mode: show sun icon, hide moon icon */
[data-theme="dark"] .theme-toggle .moon-icon {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: 20px !important;
    height: 20px !important;
}

/* Reset and Base Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

/* Global image reset */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
		position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Prevent duplicate content */
body::after {
    display: none !important;
}

/* Header Section */
#header {
    background: var(--bg-header);
    color: var(--text-light);
    padding: 2rem 0;
		text-align: center;
    position: relative;
    overflow: hidden;
			width: 100%;
    max-width: 100%;
}

#header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

#header > * {
    position: relative;
    z-index: 1;
}

/* Profile Container */
.profile-container {
    margin-bottom: 2rem;
    position: relative;
    z-index: 2;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255,255,255,0.3);
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.profile-image img {
					width: 100%;
    height: 100%;
    object-fit: cover;
}

#logo {
    color: var(--text-light);
    text-decoration: none;
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin: 0;
    position: relative;
    z-index: 2;
}

.typing {
    font-size: 1.3rem;
    font-weight: 500;
    margin: 1rem 0;
    opacity: 0.9;
}

/* Stats */
.stats {
    margin-top: 1.5rem;
}

.stat-item {
				display: flex;
					align-items: center;
					justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
    opacity: 0.9;
}

.stat-item .stat-icon {
    color: var(--accent-gold);
    width: 18px;
    height: 18px;
    transition: all 0.3s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    color: var(--accent-warning);
}

.counter {
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1.1rem;
}

/* Navigation */
#nav {
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

#nav ul {
    list-style: none;
				display: flex;
    justify-content: center;
    gap: 2rem;
				flex-wrap: wrap;
}

#nav a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

#nav a:hover,
#nav a.active {
    background: rgba(255,255,255,0.2);
    color: white;
    border-color: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Social Icons */
.icons {
    list-style: none;
    display: flex;
					justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.icons a {
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
				display: flex;
    align-items: center;
					justify-content: center;
    width: 40px;
    height: 40px;
}

.icons a:hover {
    color: white;
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.icons a svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.icons a:hover svg {
    transform: scale(1.1);
}

/* Main Content */
#wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
					width: 100%;
    overflow-x: hidden;
    position: relative;
}

#main {
    padding: 4rem 0;
    position: relative;
}

/* Sections */
section {
    margin-bottom: 5rem;
    padding: 3rem 0;
    background: var(--bg-secondary);
    border-radius: 16px;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
}

section:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

	.container {
    max-width: 900px;
		margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    background: var(--bg-header);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h3 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
		text-align: center;
	}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

h4 a {
    color: var(--accent-primary);
		text-decoration: none;
    transition: color 0.3s ease;
}

h4 a:hover {
    color: var(--accent-secondary);
}

p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

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

.about-text {
    text-align: left;
}

.about-text p {
    text-align: justify;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.highlights {
    margin: 2rem 0;
}

.highlight-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--timeline-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.highlight-item .icon {
    color: var(--accent-success);
    font-size: 1.2rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.mission {
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--mission-bg);
    border-radius: 12px;
    border-left: 4px solid var(--accent-warning);
}

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

.experience-item {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--timeline-bg);
    border-radius: 16px;
    border: 1px solid var(--border-color);
			position: relative;
    transition: all 0.3s ease;
}

.experience-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-hover);
}

.experience-item::before {
				content: '';
				position: absolute;
    left: -1px;
				top: 0;
    bottom: 0;
    width: 4px;
    background: var(--bg-header);
    border-radius: 2px;
}

.experience-header {
    margin-bottom: 1.5rem;
}

.experience-header h4 {
    border: none;
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1.4rem;
}

.company-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.company-info a {
    color: var(--accent-primary);
		text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
}

.company-info .company {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 1.1rem;
}

.duration {
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 500;
}

.achievements {
    list-style: none;
    padding-left: 0;
}

.achievements li {
		position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.achievements li::before {
    content: '▸';
			position: absolute;
			left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

/* Portfolio/Projects */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.features article {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.features article:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-hover);
}

.features .image {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    position: relative;
    border-radius: 8px 8px 0 0;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.features .image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    transition: transform 0.3s ease;
    display: block !important;
    max-width: 100% !important;
    max-height: 100% !important;
}

.features article:hover .image img {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 126, 234, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-overlay .icon {
    color: white;
    font-size: 2rem;
}

.features article:hover .project-overlay {
    opacity: 1;
}

.features .inner {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.features h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border: none;
}

.features p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Project Tags */
.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    background: var(--bg-header);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Skills Section */
.feature-icons {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-icons li {
		display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--timeline-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-icons li:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-hover);
}

.feature-icons .icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
    min-width: 2rem;
}

.feature-icons span {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Certifications */
#four {
    text-align: center;
}

.certifications-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.certification-badge {
    display: inline-block;
    margin: 0 1rem;
}

/* Footer */
#footer {
    background: var(--bg-footer);
    color: var(--text-light);
    padding: 3rem 0 2rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-content {
    margin-bottom: 2rem;
}

.footer-text {
    margin-bottom: 2rem;
}

.footer-text p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 0.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

.footer-link svg {
    width: 16px;
    height: 16px;
    transition: all 0.3s ease;
}

.copyright {
    list-style: none;
    font-size: 1rem;
    opacity: 0.8;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
}

/* Modern Back to Top Button */
.back-to-top-container {
    text-align: center;
    padding: 2rem 0;
    background: var(--bg-primary);
}

.modern-back-to-top {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    font-family: inherit;
}

.modern-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
}

.modern-back-to-top:active {
    transform: translateY(-1px);
}

.modern-back-to-top svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.modern-back-to-top:hover svg {
    transform: translateY(-2px);
}

.modern-back-to-top span {
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Responsive Design */
/* Large devices (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 1199px) {
    .container {
        max-width: 800px;
        padding: 0 1.5rem;
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .feature-icons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .experience-timeline {
        max-width: 700px;
    }
    
    .profile-image {
        width: 110px;
        height: 110px;
    }
    
    #logo {
        font-size: 2.2rem;
    }
    
    .theme-toggle {
        top: 15px;
        right: 15px;
        width: 45px;
        height: 45px;
    }
    
    .theme-toggle svg {
        width: 18px;
        height: 18px;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767px) {
    #header {
        padding: 1.5rem 0;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    #logo {
        font-size: 2rem;
    }
    
    .typing {
        font-size: 1.2rem;
    }
    
    #nav ul {
        flex-direction: row;
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    #nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    section {
        margin-bottom: 3rem;
        padding: 2rem 0;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .feature-icons {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        padding: 1.5rem;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 1rem;
    }
    
    .certifications-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .theme-toggle svg {
        width: 16px;
        height: 16px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    #header {
        padding: 1rem 0;
    }
    
    .profile-image {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }
    
    #logo {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .typing {
        font-size: 1.1rem;
        margin: 0.5rem 0;
    }
    
    .stats {
        margin-top: 1rem;
    }
    
    .stat-item {
        font-size: 0.9rem;
    }
    
    .stat-item .stat-icon {
        width: 16px;
        height: 16px;
    }
    
    #nav {
        margin: 1.5rem 0;
    }
    
    #nav ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    #nav a {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        width: 100%;
		text-align: center;
        max-width: 200px;
    }
    
    .icons {
        gap: 0.75rem;
        margin-top: 1.5rem;
    }
    
    .icons a {
        padding: 0.4rem;
        width: 36px;
        height: 36px;
    }
    
    .icons a svg {
        width: 14px;
        height: 14px;
    }
    
    .container {
        padding: 0 0.75rem;
    }
    
    #wrapper {
        padding: 0 1rem;
    }
    
    #main {
        padding: 2rem 0;
    }
    
    section {
        margin-bottom: 2rem;
        padding: 1.5rem 0;
        border-radius: 12px;
    }
    
    h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }
    
    h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    h4 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .features {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .features .image {
        height: 180px;
    }
    
    .features .inner {
        padding: 1rem;
    }
    
    .features h4 {
        font-size: 1.1rem;
    }
    
    /* Language skills mobile styling */
    .languages-list {
        margin-top: 1.5rem;
    }
    
    .language-item {
        padding: 1rem 0;
    }
    
    .features p {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .project-tags {
        gap: 0.4rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 0.2rem 0.6rem;
    }
    
    .feature-icons {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .feature-icons li {
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .feature-icons .icon {
        font-size: 1.3rem;
        min-width: 1.5rem;
    }
    
    .feature-icons span {
        font-size: 0.95rem;
    }
    
    .experience-timeline {
        max-width: 100%;
    }
    
    .experience-item {
        padding: 1rem;
        margin-bottom: 2rem;
    }
    
    .experience-header h4 {
        font-size: 1.3rem;
    }
    
    .company-info {
        gap: 0.3rem;
    }
    
    .company-info a,
    .company-info .company {
        font-size: 1rem;
    }
    
    .duration {
        font-size: 0.9rem;
    }
    
    .achievements li {
        font-size: 0.95rem;
        padding-left: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .highlights {
        margin: 1.5rem 0;
    }
    
    .highlight-item {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .highlight-item .icon {
        font-size: 1.1rem;
    }
    
    .mission {
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 1rem;
    }
    
    .certifications-grid {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .certification-badge {
        margin: 0;
    }
    
    .footer-content {
        margin-bottom: 1.5rem;
    }
    
    .footer-text p {
        font-size: 0.95rem;
    }
    
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-link {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .copyright {
        font-size: 0.9rem;
        padding-top: 1.5rem;
    }
    
    .theme-toggle {
        top: 8px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
    
    .theme-toggle svg {
        width: 14px;
        height: 14px;
    }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 767px) and (orientation: landscape) {
			#header {
        padding: 1rem 0;
    }
    
    .profile-image {
        width: 70px;
        height: 70px;
        margin-bottom: 0.75rem;
    }
    
    #logo {
        font-size: 1.6rem;
        margin-bottom: 0.25rem;
    }
    
    .typing {
        font-size: 1rem;
        margin: 0.25rem 0;
    }
    
    #nav {
        margin: 1rem 0;
    }
    
    .icons {
        margin-top: 1rem;
    }
    
    #main {
        padding: 1.5rem 0;
    }
    
    section {
        margin-bottom: 1.5rem;
        padding: 1.5rem 0;
    }
    
    .theme-toggle {
        top: 5px;
        right: 5px;
        width: 32px;
        height: 32px;
    }
    
    .theme-toggle svg {
        width: 12px;
        height: 12px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .profile-image {
        border-width: 2px;
    }
    
    .tag {
        border-radius: 25px;
    }
}

/* Hide titleBar that's generated by JavaScript */
#titleBar {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

/* Hide any other elements that might contain "Thairy Daza" outside main content */
#titleBar .title,
#titleBar span,
#titleBar * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* Ensure all content is within the main wrapper */
body > *:not(#wrapper):not(#header):not(.theme-toggle) {
    position: relative;
    z-index: -1;
}

/* Hide any floating elements that might contain unwanted text, but preserve theme toggle */
body > div:not(#wrapper):not(#header):not(.theme-toggle) {
    display: none !important;
}

/* Ensure theme toggle is always visible and properly positioned */
.theme-toggle,
.theme-toggle * {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    z-index: 9999 !important;
}

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

.skill-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-light);
}

.skill-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
    border-color: var(--border-hover);
}

.skill-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skill-icon img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease;
    display: block;
    margin: 0 auto;
}

.skill-card:hover .skill-icon img {
    transform: scale(1.1);
}

.skill-card h3 {
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    font-size: 1.2rem;
}

.skill-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
    font-size: 0.9rem;
}

.skill-level {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.level-segments {
    display: flex;
    gap: 6px;
    width: 100%;
    height: 10px;
}

.segment {
    flex: 1;
    height: 100%;
    background: var(--bg-tertiary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.segment.filled {
    background: linear-gradient(135deg, #10B981, #059669);
}

.level-text {
    font-size: 0.875rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.skill-card .level-text {
    color: var(--accent-primary);
}

.skill-card .level-text {
    color: #10B981;
}

/* Language Skills Section */
.languages-list {
    max-width: 800px;
    margin: 2rem auto 0;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.language-item:last-child {
    border-bottom: none;
}

.language-item:hover {
    background: var(--bg-tertiary);
    margin: 0 -1rem;
    padding: 1.5rem 1rem;
    border-radius: 8px;
}

.language-info {
    flex: 1;
    text-align: left;
}

.language-info h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    text-align: left;
}

.language-info p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    text-align: left;
}

.language-level {
    margin-left: 2rem;
}

.level-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--accent-primary);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 60px;
    text-align: center;
}

.level-badge.native {
    background: var(--accent-success);
}

/* Mobile responsive for languages */
@media (max-width: 768px) {
    .language-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .language-level {
        margin-left: 0;
        align-self: flex-end;
    }
    
    .language-info h3 {
        font-size: 1.1rem;
    }
    
    .language-info p {
        font-size: 0.9rem;
    }
}

/* Print styles */
@media print {
    .theme-toggle {
        display: none !important;
    }

			#header {
        background: white !important;
        color: black !important;
    }
    
    #logo {
        color: black !important;
        text-shadow: none !important;
    }
    
    .profile-image {
        border-color: #ccc !important;
    }
    
    section {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .features article:hover {
        transform: none !important;
    }
    
    .feature-icons li:hover {
        transform: none !important;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Selection styling */
::selection {
    background: #667eea;
    color: white;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}

/* Force project image sizing - Consolidated */
.features .image img,
.features article .image img,
.project-card .image img,
.image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    aspect-ratio: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    vertical-align: top !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.features .image,
.features article .image,
.project-card .image,
.image {
    width: 100% !important;
    height: 200px !important;
    overflow: hidden !important;
    position: relative !important;
    display: block !important;
    box-sizing: border-box !important;
    line-height: 0 !important;
    font-size: 0 !important;
}

/* Ultra-specific image override */
.image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: block !important;
    box-sizing: border-box !important;
    aspect-ratio: auto !important;
    flex-shrink: 0 !important;
    flex-grow: 0 !important;
    vertical-align: top !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile responsive for About section */
@media (max-width: 768px) {
    .about-text p {
        text-align: left;
        line-height: 1.6;
        font-size: 0.95rem;
    }
    
    .about-content {
        max-width: 100%;
    }
    
    .highlights {
        margin: 1.5rem 0;
    }
    
    .highlight-item {
        padding: 0.75rem;
        gap: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .highlight-item .icon {
        font-size: 1.1rem;
    }
    
    .mission {
        margin-top: 1.5rem;
        padding: 1rem;
        font-size: 1rem;
    }
}