/* --- CSS Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --primary-bg: #0f172a; --secondary-bg: #1e293b; --card-bg: #334155; --text-primary: #f8fafc; --text-secondary: #cbd5e1; --accent: #3b82f6; --accent-hover: #2563eb; --border-color: rgba(203, 213, 225, 0.1); --heading-font: 'Space Grotesk', sans-serif; --body-font: 'Poppins', sans-serif; --header-height: 70px; --transition: 0.3s ease; --border-radius: 10px; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--body-font); background-color: var(--primary-bg); color: var(--text-primary); line-height: 1.7; overflow-x: hidden; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body.modal-open, body.fullscreen-open { overflow: hidden; }

/* --- Preloader --- */
#preloader { position: fixed; inset: 0; background: var(--primary-bg); z-index: 10000; display: flex; justify-content: center; align-items: center; transition: opacity 0.8s ease, visibility 0.8s ease; }
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-spinner { width: 60px; height: 60px; border: 5px solid var(--border-color); border-top-color: var(--accent); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- General Styles --- */
.container { width: 90%; max-width: 1200px; margin: 0 auto; padding: 0 15px; }
h1, h2, h3, h4, h5, h6 { font-family: var(--heading-font); margin-bottom: 1rem; line-height: 1.3; color: var(--text-primary); font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5vw, 4rem); } h2 { font-size: clamp(2rem, 4vw, 3rem); } h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); } h4 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
p { color: var(--text-secondary); margin-bottom: 1.5rem; } p a { color: var(--accent); font-weight: 500; } p a:hover { color: var(--accent-hover); text-decoration: underline; }
.section-intro { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; }
a { color: var(--accent); text-decoration: none; transition: color var(--transition); } a:hover { color: var(--accent-hover); }
.highlight { color: var(--accent); font-weight: 500; }
ul { list-style: none; padding-left: 0; }
.section { padding: 100px 0; position: relative; border-bottom: 1px solid var(--border-color); } section:last-of-type { border-bottom: none; }
.section-title { text-align: center; margin-bottom: 4rem; position: relative; padding-bottom: 15px; }
.section-title + .section-intro, .section-title + .skills-layout { margin-top: -2.5rem; }
.section-intro + .filter-buttons { margin-top: 3.5rem; }
.section-title::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 80px; height: 4px; background: var(--accent); border-radius: 2px; }
.btn { display: inline-block; padding: 12px 30px; font-family: var(--heading-font); font-weight: 500; font-size: 1rem; border-radius: var(--border-radius); background: var(--accent); color: white; border: none; cursor: pointer; transition: all var(--transition); text-align: center; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2); }
.btn:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(59, 130, 246, 0.4); }
.btn i { margin-left: 8px; transition: transform 0.3s ease; } .btn:hover i { transform: translateX(3px); }
.btn-outline { background: transparent; border: 2px solid var(--accent); color: var(--accent); box-shadow: none; }
.btn-outline:hover { background: var(--accent); color: white; box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3); }
.btn-small { padding: 8px 15px; font-size: 0.85rem; }

/* --- Header / Navigation --- */
#header { position: fixed; top: 0; left: 0; width: 100%; height: var(--header-height); background: rgba(15, 23, 42, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); z-index: 1000; transition: background-color var(--transition), box-shadow var(--transition), border-bottom-color var(--transition); border-bottom: 1px solid transparent; }
#header.scrolled { background: rgba(15, 23, 42, 0.95); border-bottom: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2); }
.header-container { height: 100%; display: flex; justify-content: space-between; align-items: center; }
.logo a { font-family: var(--heading-font); font-size: 1.8rem; font-weight: 700; color: white; transition: color 0.3s ease; } .logo a:hover { color: #f0f0f0; } .logo span { color: var(--accent); }
#nav ul { list-style: none; display: flex; gap: 30px; margin: 0; padding: 0; }
#nav .nav-link { color: var(--text-secondary); font-weight: 500; padding: 5px 0; position: relative; transition: color 0.3s ease; font-size: 0.95rem; }
#nav .nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent); transition: width var(--transition); }
#nav .nav-link:hover, #nav .nav-link.active { color: white; } #nav .nav-link:hover::after, #nav .nav-link.active::after { width: 100%; }
#menu-toggle { display: none; background: none; border: none; color: white; font-size: 1.8rem; cursor: pointer; z-index: 1100; padding: 5px; } #menu-toggle i.fa-times { display: none; }

/* --- Hero Section --- */
#hero { height: 100vh; min-height: 700px; display: flex; align-items: center; position: relative; padding: 0; overflow: hidden; border-bottom: none; }
#globe-container { position: absolute; top: 0; left: 10%; width: 90%; height: 100%; z-index: 0; opacity: 0.6; overflow: hidden; }
#globe-canvas { display: block; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 800px; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5); }
.hero-content h1 { margin-bottom: 1rem; font-weight: 700; }
.hero-content .subtitle { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 2.5rem; font-weight: 300; }
.hero-buttons { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.scroll-down { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 3; color: var(--accent); font-size: 2rem; animation: bounce 2s infinite; opacity: 0.8; } .scroll-down:hover { opacity: 1; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); } 40% { transform: translateX(-50%) translateY(-15px); } 60% { transform: translateX(-50%) translateY(-8px); } }

/* --- About Section --- */
#about { background-color: var(--secondary-bg); }
.about-heading { font-size: 1.6rem; margin-bottom: 1.5rem; color: var(--text-primary); }
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: center; }
.about-image { position: relative; max-width: 350px; margin: 0 auto; border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3); background-color: var(--card-bg); min-height: 300px; display: flex; align-items: center; justify-content: center; }
.about-image img { width: 100%; height: auto; display: block; border-radius: var(--border-radius); transition: transform 0.5s ease; } .about-image:hover img { transform: scale(1.05); }
.about-links { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.social-icon { font-size: 1.6rem; color: var(--text-secondary); transition: color 0.3s, transform 0.3s; } .social-icon:hover { color: var(--accent); transform: translateY(-3px); }

/* --- Experience Section --- */
#experience { background-color: var(--primary-bg); }
.experience-item { background-color: var(--secondary-bg); padding: 2rem 2.5rem; border-radius: var(--border-radius); margin-bottom: 2rem; border: 1px solid var(--border-color); box-shadow: 0 5px 20px rgba(0,0,0, 0.15); } .experience-item:last-child { margin-bottom: 0; }
.experience-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.experience-title { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.experience-company-location { font-size: 1rem; color: var(--text-secondary); margin-bottom: 0.5rem; } .experience-company-location .company { font-weight: 500; color: var(--text-primary); }
.experience-dates { font-size: 0.9rem; color: var(--accent); font-weight: 500; }
.experience-duties { list-style: none; padding-left: 0; margin-top: 1rem; }
.experience-duties li { position: relative; padding-left: 25px; margin-bottom: 0.8rem; color: var(--text-secondary); line-height: 1.6; }
.experience-duties li::before { content: '\f105'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 4px; color: var(--accent); font-size: 0.9rem; }

/* --- Skills Section (Using Static Image) --- */
#skills { background-color: var(--secondary-bg); overflow: hidden; }
.skills-layout { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 3rem; }
.skills-text { flex: 1 1 55%; min-width: 300px; max-width: 650px; text-align: left; }
.skills-text h4 { margin-top: 1.5rem; margin-bottom: 0.8rem; color: var(--text-primary); font-size: 1.1rem; }
.skills-text ul { list-style: none; padding-left: 0; column-count: 2; column-gap: 2rem; }
.skills-text ul li { margin-bottom: 0.5rem; color: var(--text-secondary); position: relative; padding-left: 20px; font-size: 0.95rem; break-inside: avoid; }
.skills-text ul li::before { content: '\2022'; position: absolute; left: 0; color: var(--accent); font-size: 1.2rem; line-height: inherit; }
.skills-intro { color: var(--text-secondary); font-size: 1.1rem; line-height: 1.8; margin-bottom: 1rem; }
.skills-visual { flex: 1 1 35%; min-width: 250px; max-width: 400px; display: flex; justify-content: center; align-items: center; }
#skills-static-image { width: 100%; height: auto; max-width: 350px; object-fit: contain; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
#skills-static-image:hover { transform: scale(1.08) rotate(5deg); }

/* --- Projects Section --- */
#projects { background-color: var(--primary-bg); }
.filter-buttons { text-align: center; margin-bottom: 3rem; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.filter-btn { background: transparent; border: 1px solid var(--text-secondary); color: var(--text-secondary); padding: 8px 20px; margin: 0; border-radius: 20px; cursor: pointer; transition: all var(--transition); font-family: var(--heading-font); font-weight: 500; }
.filter-btn:hover, .filter-btn.active { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 5px 15px rgba(59, 130, 246, 0.2); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.project-card { background-color: var(--secondary-bg); border-radius: var(--border-radius); overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease, opacity 0.4s ease; position: relative; display: flex; flex-direction: column; border: 1px solid var(--border-color); opacity: 0; transform: translateY(20px); }
.project-card:hover { transform: translateY(-10px) scale(1.02); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4); border-color: var(--accent); }
.project-image { position: relative; height: 200px; overflow: hidden; background-color: #475569; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-color); }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; } .project-card:hover .project-image img { transform: scale(1.08); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.9)); opacity: 0; transition: opacity var(--transition); display: flex; justify-content: center; align-items: flex-end; gap: 1.5rem; padding-bottom: 1rem; }
.project-card:hover .project-overlay { opacity: 1; }
.overlay-icon { font-size: 1.6rem; color: rgba(255, 255, 255, 0.8); transition: transform 0.3s ease, color 0.3s ease; text-shadow: 0 1px 3px rgba(0,0,0,0.7); cursor: pointer; } .overlay-icon:hover { color: white; transform: scale(1.2) translateY(-2px); } .overlay-icon i { display: block; }
.project-info { padding: 1.5rem; flex-grow: 1; display: flex; flex-direction: column; }
.project-info h3 { margin-bottom: 0.5rem; font-size: 1.3rem; }
.project-info p { font-size: 0.95rem; margin-bottom: 1rem; flex-grow: 1; min-height: 40px; color: var(--text-secondary); } .project-info .status { font-size: 0.8rem; font-style: italic; color: var(--text-secondary); margin-bottom: 1rem; margin-top: -0.5rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: auto; }
.tag { background: rgba(59, 130, 246, 0.1); color: var(--accent); padding: 4px 12px; border-radius: 15px; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(59, 130, 246, 0.3); }

/* --- Image Comparison --- */
.image-comparison-container { background-color: transparent; padding: 0; border-radius: var(--border-radius); margin-top: 4rem; }
.image-comparison { position: relative; width: 100%; max-width: 800px; margin: 2rem auto; overflow: hidden; border-radius: var(--border-radius); box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4); border: 2px solid var(--border-color); aspect-ratio: 16 / 9; background-color: #475569; }
.image-comparison img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; }
.image-comparison .before-image { position: absolute; top: 0; left: 0; width: 50%; height: 100%; overflow: hidden; border-right: 3px solid white; z-index: 5; }
.image-comparison .before-image img { width: 100%; height: 100%; max-width: none; object-fit: cover; position: absolute; left: 0; top: 0; }
.image-comparison .after-image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; } .image-comparison .after-image img { width: 100%; height: 100%; object-fit: cover; }
.image-comparison .slider { position: absolute; top: 0; bottom: 0; left: 50%; width: 4px; background: white; cursor: ew-resize; transform: translateX(-50%); z-index: 10; box-shadow: 0 0 5px rgba(0,0,0,0.5); } .image-comparison .slider.dragging { background: var(--accent); }
.image-comparison .slider::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 40px; height: 40px; background: white; border-radius: 50%; box-shadow: 0 0 10px rgba(0,0,0,0.5); transition: background-color 0.2s ease; } .image-comparison .slider.dragging::before { background: var(--accent); }
.image-comparison .slider::after { content: '↔'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: var(--accent); font-size: 1.2rem; font-weight: bold; pointer-events: none; transition: color 0.2s ease; } .image-comparison .slider.dragging::after { color: white; }

/* --- Education Section --- */
#education { background-color: var(--secondary-bg); }
.education-item { background-color: var(--card-bg); padding: 2rem 2.5rem; border-radius: var(--border-radius); margin-bottom: 2rem; border: 1px solid var(--border-color); } .education-item:last-child { margin-bottom: 0; }
.education-degree { font-size: 1.5rem; color: var(--text-primary); margin-bottom: 0.25rem; }
.education-university { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 0.25rem; font-weight: 500; }
.education-dates { font-size: 0.9rem; color: var(--accent); margin-bottom: 1.5rem; }
.education-details h4 { font-size: 1.1rem; color: var(--text-primary); margin-bottom: 0.8rem; padding-top: 1rem; border-top: 1px dashed var(--border-color); }
.education-details ul { list-style: none; padding-left: 0; }
.education-details li { margin-bottom: 0.5rem; color: var(--text-secondary); font-size: 0.95rem; position: relative; padding-left: 20px; } .education-details li::before { content: '\2022'; position: absolute; left: 0; top: 0; color: var(--accent); font-size: 1.2rem; line-height: inherit; }

/* --- Profiles Section --- */
#profiles { background-color: var(--primary-bg); padding: 80px 0; }
.profiles-container { text-align: center; }
.profile-link { margin-bottom: 1rem; display: inline-block; margin-left: 0.5rem; margin-right: 0.5rem; }
.profile-link .btn { min-width: 220px; }

/* --- Contact Section --- */
#contact { background: linear-gradient(rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 1)); border-bottom: none; }
.contact-wrapper.contact-info-only { grid-template-columns: 1fr; max-width: 600px; text-align: center; } .contact-wrapper.contact-info-only .contact-info { margin-bottom: 0; } .contact-wrapper.contact-info-only .contact-info p { justify-content: center; } .contact-wrapper.contact-info-only .contact-socials { justify-content: center; }
.contact-wrapper { background: var(--secondary-bg); padding: 3rem; border-radius: var(--border-radius); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3); max-width: 600px; margin: 0 auto; border: 1px solid var(--border-color); }
.contact-info h3 { margin-bottom: 1.5rem; }
.contact-info p { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; line-height: 1.6; }
.contact-info i { color: var(--accent); font-size: 1.4rem; width: 25px; text-align: center; margin-top: 4px; flex-shrink: 0; }
.contact-socials { margin-top: 2rem; display: flex; gap: 1.5rem; } .contact-socials .social-icon { font-size: 1.8rem; }

/* --- Footer --- */
#footer { padding: 40px 0; text-align: center; background: var(--primary-bg); border-top: 1px solid var(--border-color); }
#footer p { margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-secondary); }
#footer .heart { color: #ef4444; display: inline-block; animation: pulse 1.5s infinite ease-in-out; }
@keyframes pulse { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } }

/* --- Back to Top Button --- */
#back-to-top { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--accent); color: white; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 1.5rem; box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--transition); z-index: 999; cursor: pointer; border: none; }
#back-to-top.visible { opacity: 0.8; visibility: visible; transform: translateY(0); } #back-to-top:hover { opacity: 1; background: var(--accent-hover); transform: scale(1.1) translateY(-2px); }

/* --- Animation Classes --- */
.animate-on-scroll { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }
.animate-on-scroll.is-visible > *:nth-child(1) { transition-delay: 0.1s; } .animate-on-scroll.is-visible > *:nth-child(2) { transition-delay: 0.2s; } .animate-on-scroll.is-visible > *:nth-child(3) { transition-delay: 0.3s; }

/* --- Project Modal Styles --- */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.8); z-index: 1050; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.modal-overlay.modal-active { opacity: 1; visibility: visible; }
.project-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.95); background-color: var(--secondary-bg); padding: 2.5rem 3rem; border-radius: var(--border-radius); z-index: 1060; width: 90%; max-width: 900px; max-height: 90vh; overflow-y: auto; box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); border: 1px solid var(--border-color); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; }
.project-modal.modal-active { opacity: 1; visibility: visible; transform: translate(-50%, -50%) scale(1); }
.modal-close-btn { position: absolute; top: 1rem; right: 1.5rem; background: none; border: none; font-size: 2.5rem; line-height: 1; color: var(--text-secondary); cursor: pointer; transition: color 0.3s ease, transform 0.3s ease; } .modal-close-btn:hover { color: white; transform: rotate(90deg); }
.project-modal h3 { margin-top: 0; margin-bottom: 2rem; text-align: center; color: var(--text-primary); padding-bottom: 1rem; border-bottom: 1px solid var(--border-color); }
.modal-content-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 2rem; }
.modal-image-container { display: flex; flex-direction: column; align-items: center;}
.modal-image-container img#modal-image { width: 100%; height: auto; max-height: 350px; object-fit: contain; border-radius: 8px; margin-bottom: 1rem; background-color: var(--card-bg); cursor: pointer; }
.modal-image-container img#modal-diagram { width: 100%; max-width: 400px; height: auto; margin-top: 1rem; border: 1px solid var(--border-color); border-radius: 8px; background-color: white; padding: 5px; cursor: pointer; }
.modal-text-content h4 { margin-top: 1.5rem; margin-bottom: 0.8rem; font-size: 1.1rem; color: var(--text-primary); }
.modal-text-content p { color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.modal-tags { margin-bottom: 1.5rem; }
.modal-links { margin-top: 2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.diagram-caption { text-align: center; font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.5rem; font-style: italic; }

/* Demo Image Gallery Styles */
.modal-demo-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; margin-top: 1.5rem; width: 100%; }
.modal-demo-img { width: 100%; height: 80px; object-fit: cover; border-radius: 5px; border: 1px solid var(--border-color); cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.modal-demo-img:hover { transform: scale(1.05); box-shadow: 0 5px 15px rgba(0,0,0,0.3); }
.modal-clickable-image { cursor: pointer; }

/* --- Fullscreen Image Viewer Styles --- */
.fullscreen-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.85); z-index: 1100; display: flex; justify-content: center; align-items: center; padding: 20px; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fullscreen-overlay.active { opacity: 1; visibility: visible; }
#fullscreen-image { display: block; max-width: 95%; max-height: 95%; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.5); border: 2px solid rgba(255, 255, 255, 0.1); border-radius: 5px; }
.fullscreen-close-btn { position: absolute; top: 20px; right: 30px; background: rgba(0, 0, 0, 0.5); border: none; color: white; font-size: 2.5rem; line-height: 1; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; transition: background-color 0.3s ease, transform 0.3s ease; display: flex; justify-content: center; align-items: center; padding: 0; }
.fullscreen-close-btn:hover { background: rgba(255, 255, 255, 0.2); transform: rotate(90deg); }


/* --- Responsiveness --- */
@media (max-width: 992px) {
    .section { padding: 80px 0; }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; } .about-image { order: -1; margin-bottom: 2rem; max-width: 300px; } .about-heading { text-align: center; } .about-text { text-align: center; } .about-links { justify-content: center; }
    .contact-wrapper { max-width: 90%; }
    .image-comparison { max-width: 90%; }
    .skills-layout { flex-direction: column; text-align: center; } .skills-text { margin-bottom: 2rem; text-align: center; order: 1;} .skills-visual { order: -1; width: 80%; max-width: 400px; margin: 0 auto; } #skills-static-image { max-width: 100%; }
    .skills-text ul { column-count: 1; }
}
@media (max-width: 768px) {
    :root { --header-height: 60px; }
    h1 { font-size: clamp(2.2rem, 7vw, 3rem); } h2 { font-size: clamp(1.8rem, 6vw, 2.5rem); } h3 { font-size: clamp(1.4rem, 5vw, 1.8rem); }
    #nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 320px; height: 100vh; background: var(--secondary-bg); box-shadow: -10px 0 30px rgba(0, 0, 0, 0.3); transition: right 0.4s ease; padding-top: calc(var(--header-height) + 2rem); z-index: 1050; overflow-y: auto; }
    #nav.active { right: 0; } #nav ul { flex-direction: column; align-items: center; gap: 1.5rem; padding: 2rem 0; } #nav .nav-link { font-size: 1.1rem; }
    #menu-toggle { display: block; position: relative; z-index: 1100; }
    .contact-wrapper { padding: 2rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .filter-buttons { gap: 8px; } .filter-btn { padding: 6px 15px; font-size: 0.85rem; }
    .experience-item { padding: 1.5rem; } .education-item { padding: 1.5rem; }
    #globe-container { left: 5%; width: 95%; opacity: 0.5; }
    .modal-content-layout { grid-template-columns: 1fr; }
    .modal-image-container { order: -1; margin-bottom: 1.5rem;}
    .project-modal { padding: 2rem 1.5rem; width: 95%; }
    .modal-close-btn { top: 0.8rem; right: 1rem; font-size: 2rem; }
    .project-modal h3 { font-size: 1.6rem; margin-bottom: 1.5rem;}
    .skills-visual { width: 70%; max-width: 350px; }
    .modal-demo-gallery { grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); }
    .modal-demo-img { height: 60px; }
}
@media (max-width: 480px) {
    .btn { padding: 12px 25px; font-size: 1rem; width: 100%; max-width: 300px; margin-left: auto; margin-right: auto; display: block; }
    .btn-outline { width: 100%; max-width: 300px; }
    .hero-buttons { flex-direction: column; align-items: center; gap: 1rem; } .hero-buttons .btn { width: auto; max-width: 280px; }
    .about-links .btn, .about-links .btn-outline { width: auto; max-width: none; display: inline-block; font-size: 0.9rem; padding: 10px 20px; } .about-links .social-icon { font-size: 1.4rem; }
    .filter-buttons { gap: 5px; } .filter-btn { padding: 5px 12px; font-size: 0.8rem; }
    .contact-wrapper { padding: 1.5rem; }
    #footer { padding: 30px 0; } #footer p { font-size: 0.8rem; }
    .experience-title { font-size: 1.3rem; } .education-degree { font-size: 1.3rem; } .education-details h4 { font-size: 1rem; }
    #globe-container { left: 0; width: 100%; opacity: 0.4; }
    .skills-visual { width: 90%; } #skills-static-image { max-width: 280px; }
    .modal-links .btn { width: 100%; max-width: none; margin-bottom: 0.5rem;}
    .skills-text ul { column-count: 1; }
    .project-modal { padding: 1.5rem 1rem; }
    .fullscreen-close-btn { font-size: 2rem; width: 35px; height: 35px; top: 15px; right: 15px;}
    .modal-demo-gallery { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); }
    .modal-demo-img { height: 50px; }
}