/* ========== CSS VARIABLES & THEMES ========== */
:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --accent-color: #6c5ce7;
    --accent-hover: #5b4cdb;
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --border-color: #e0e0e0;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.3);
    --timeline-line: #6c5ce7;
}

[data-theme="dark"] {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a2e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-color: #a29bfe;
    --accent-hover: #b8b5ff;
    --card-bg: rgba(26, 26, 46, 0.9);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --nav-bg: rgba(10, 10, 10, 0.95);
    --border-color: #2a2a4a;
    --glass-bg: rgba(26, 26, 46, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);
    --timeline-line: #a29bfe;
}

/* ========== GLOBAL STYLES ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Poppins', sans-serif; background-color: var(--bg-primary); color: var(--text-primary); transition: all 0.3s ease; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; }

/* ========== BACKGROUND CANVAS ========== */
#backgroundCanvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.4; }

/* ========== MUSIC PLAYER ========== */
.music-player { position: fixed; bottom: 30px; right: 30px; z-index: 1000; }
.music-btn { width: 50px; height: 50px; border-radius: 50%; border: none; background: var(--gradient-1); color: white; font-size: 1.2rem; cursor: pointer; box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4); transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; }
.music-btn:hover { transform: scale(1.1); box-shadow: 0 8px 25px rgba(108, 92, 231, 0.6); }
.music-btn.playing { animation: musicPulse 1.5s infinite; }
@keyframes musicPulse { 0%, 100% { box-shadow: 0 5px 20px rgba(108, 92, 231, 0.4); } 50% { box-shadow: 0 5px 35px rgba(108, 92, 231, 0.8); } }

/* ========== NAVIGATION ========== */
.navbar { position: fixed; top: 0; left: 0; width: 100%; z-index: 999; background: var(--nav-bg); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border-color); transition: all 0.3s ease; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 1rem 2rem; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { font-size: 1rem; font-weight: 700; color: var(--accent-color); text-decoration: none; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; white-space: nowrap; }
.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link { text-decoration: none; color: var(--text-primary); font-weight: 500; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--accent-color); transition: width 0.3s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-btn { background: none; border: none; font-size: 1.3rem; color: var(--text-primary); cursor: pointer; transition: transform 0.3s ease; }
.theme-btn:hover { transform: rotate(180deg); }
.hamburger { display: none; flex-direction: column; cursor: pointer; gap: 5px; }
.hamburger span { width: 25px; height: 3px; background: var(--text-primary); transition: all 0.3s ease; }

/* ========== HERO SECTION ========== */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 100px 2rem 80px; position: relative; }
.hero-content { max-width: 1200px; width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
.hero-text { flex: 1; }
.greeting { font-size: 1.2rem; color: var(--accent-color); margin-bottom: 0.5rem; }
.name { font-size: 3.5rem; font-weight: 800; background: var(--gradient-1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 1rem; }
.typing-text { font-size: 1.5rem; color: var(--text-secondary); margin-bottom: 1.5rem; min-height: 2rem; }
#typed { color: var(--accent-color); font-weight: 600; border-right: 3px solid var(--accent-color); animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { border-color: transparent; } 50% { border-color: var(--accent-color); } }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; }
.hero-buttons { display: flex; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.btn { padding: 0.8rem 2rem; border-radius: 50px; text-decoration: none; font-weight: 600; transition: all 0.3s ease; display: inline-flex; align-items: center; gap: 0.5rem; border: none; cursor: pointer; }
.primary-btn { background: var(--gradient-1); color: white; box-shadow: 0 5px 20px rgba(108, 92, 231, 0.3); }
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(108, 92, 231, 0.5); }
.secondary-btn { background: transparent; color: var(--text-primary); border: 2px solid var(--accent-color); }
.secondary-btn:hover { background: var(--accent-color); color: white; transform: translateY(-3px); }
.social-links { display: flex; gap: 1rem; }
.social-links a { width: 45px; height: 45px; border-radius: 50%; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); display: flex; align-items: center; justify-content: center; color: var(--text-primary); font-size: 1.2rem; transition: all 0.3s ease; }
.social-links a:hover { background: var(--accent-color); color: white; transform: translateY(-3px); box-shadow: 0 10px 20px rgba(108, 92, 231, 0.3); }

/* ========== HERO IMAGE ========== */
.hero-image { flex: 1; display: flex; justify-content: center; align-items: center; }
.image-wrapper { width: 350px; height: 350px; border-radius: 50%; background: var(--gradient-1); padding: 3px; animation: float 4s ease-in-out infinite; position: relative; box-shadow: 0 0 30px rgba(108, 92, 231, 0.3), 0 0 60px rgba(108, 92, 231, 0.15); }
.image-wrapper::before { content: ''; position: absolute; top: -8px; left: -8px; right: -8px; bottom: -8px; border-radius: 50%; background: var(--gradient-1); opacity: 0.15; z-index: -1; filter: blur(20px); }
.image-wrapper img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; transition: all 0.5s ease; filter: brightness(1.03) contrast(0.97) saturate(0.98); -webkit-mask-image: radial-gradient(circle, black 88%, transparent 100%); mask-image: radial-gradient(circle, black 88%, transparent 100%); }
.image-wrapper::after { content: ''; position: absolute; top: 5px; left: 5px; right: 5px; bottom: 5px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.15); pointer-events: none; z-index: 2; }
.image-wrapper:hover { transform: scale(1.05); box-shadow: 0 0 40px rgba(108, 92, 231, 0.5), 0 0 80px rgba(108, 92, 231, 0.25); transition: all 0.5s ease; }
.image-wrapper:hover img { filter: brightness(1.06) contrast(0.96) saturate(0.97); }
@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-20px); } }
.scroll-indicator { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; color: var(--text-secondary); animation: bounce 2s infinite; z-index: 1; pointer-events: none; }
@keyframes bounce { 0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); } 40% { transform: translateY(-10px) translateX(-50%); } 60% { transform: translateY(-5px) translateX(-50%); } }

/* ========== SECTION STYLES ========== */
section { padding: 100px 2rem; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; color: var(--text-primary); }
.section-title span { color: var(--accent-color); }

/* ========== ABOUT SECTION ========== */
.about-content { max-width: 1200px; margin: 0 auto; display: flex; gap: 4rem; align-items: center; }
.about-image { flex: 1; }
.about-image img { width: 100%; max-width: 400px; border-radius: 20px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(108, 92, 231, 0.1); transition: all 0.3s ease; filter: brightness(1.02) contrast(0.98); }
.about-image img:hover { transform: scale(1.02); box-shadow: 0 15px 40px rgba(108, 92, 231, 0.2), 0 0 0 2px rgba(108, 92, 231, 0.2); }
.about-text { flex: 1.5; }
.about-text h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-primary); }
.about-text p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.about-details { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.detail-item { display: flex; align-items: center; gap: 0.8rem; color: var(--text-secondary); }
.detail-item i { color: var(--accent-color); font-size: 1.2rem; }

/* ========== EXPERIENCE TIMELINE ========== */
.timeline { max-width: 800px; margin: 0 auto; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; transform: translateX(-50%); width: 3px; height: 100%; background: var(--timeline-line); }
.timeline-item { margin-bottom: 3rem; position: relative; width: 50%; }
.timeline-item.left { left: 0; padding-right: 3rem; }
.timeline-item.right { left: 50%; padding-left: 3rem; }
.timeline-content { background: var(--card-bg); backdrop-filter: blur(10px); padding: 1.5rem; border-radius: 15px; box-shadow: var(--card-shadow); border: 1px solid var(--glass-border); position: relative; }
.timeline-content::before { content: ''; position: absolute; width: 20px; height: 20px; background: var(--accent-color); border-radius: 50%; top: 50%; }
.timeline-item.left .timeline-content::before { right: -3.65rem; transform: translateY(-50%); }
.timeline-item.right .timeline-content::before { left: -3.65rem; transform: translateY(-50%); }
.timeline-date { display: inline-block; padding: 0.3rem 1rem; background: var(--gradient-1); color: white; border-radius: 20px; font-size: 0.9rem; margin-bottom: 0.8rem; }
.timeline-content h3 { color: var(--text-primary); margin-bottom: 0.3rem; }
.timeline-content h4 { color: var(--accent-color); margin-bottom: 0.5rem; font-weight: 500; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

/* ========== PROJECTS SECTION ========== */
.project-category { margin-bottom: 4rem; }
.category-title { font-size: 1.6rem; color: var(--text-primary); margin: 2.5rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent-color); display: flex; align-items: center; gap: 0.8rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.category-title:first-of-type { margin-top: 0; }
.category-title i { color: var(--accent-color); }
.projects-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 2rem; }
.project-card { background: var(--card-bg); backdrop-filter: blur(10px); border-radius: 20px; overflow: hidden; box-shadow: var(--card-shadow); border: 1px solid var(--glass-border); transition: all 0.3s ease; cursor: pointer; }
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.project-image { position: relative; overflow: hidden; height: 200px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.project-card:hover .project-image img { transform: scale(1.1); }
.project-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.7); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; z-index: 3; }
.project-card:hover .project-overlay { opacity: 1; }
.project-preview-btn { padding: 0.8rem 2rem; background: var(--gradient-1); color: white; border: none; border-radius: 50px; cursor: pointer; font-weight: 600; font-family: 'Poppins', sans-serif; transform: translateY(20px); transition: all 0.3s ease; font-size: 0.9rem; }
.project-card:hover .project-preview-btn { transform: translateY(0); }
.project-info { padding: 1.5rem; }
.project-info h3 { color: var(--text-primary); margin-bottom: 0.5rem; }
.project-info p { color: var(--text-secondary); margin-bottom: 1rem; font-size: 0.9rem; line-height: 1.5; }
.project-tech { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.project-tech span { padding: 0.3rem 0.8rem; background: var(--accent-color); color: white; border-radius: 20px; font-size: 0.8rem; }
.project-links { display: flex; gap: 1rem; margin-top: 0.8rem; }
.project-link { color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; font-weight: 500; transition: color 0.3s ease; display: flex; align-items: center; gap: 0.3rem; }
.project-link:hover { color: var(--accent-color); }

/* ========== VIDEO PROJECT CARD (HOVER TO PLAY) ========== */
.video-project-card .video-thumbnail { position: relative; overflow: hidden; height: 200px; background: #000; }
.video-project-card .project-video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; z-index: 2; }
.video-project-card .video-poster { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; transition: opacity 0.4s ease; }
.video-project-card .video-poster img { width: 100%; height: 100%; object-fit: cover; }
.video-project-card:hover .project-video { opacity: 1; }
.video-project-card:hover .video-poster { opacity: 0; }

/* ========== EXPANDED OVERLAY ========== */
.expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    animation: fadeIn 0.3s ease;
}

/* ========== OVERLAY ACTIVE - RESET STACKING ========== */
body:has(.expanded-overlay) .project-category,
body:has(.expanded-overlay) .category-title,
body:has(.expanded-overlay) section,
body:has(.expanded-overlay) .certifications {
    z-index: auto !important;
    position: static !important;
    transform: none !important;
    isolation: auto !important;
}

/* ========== EXPANDED VIDEO CARD ========== */
.video-project-card.expanded {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 90vw;
    max-width: 1000px;
    max-height: 90vh;
    z-index: 100000;
    border-radius: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    margin: 0 !important;
    transition: none !important;
    animation: slideUp 0.5s ease;
}

.video-project-card.expanded .video-thumbnail {
    height: auto;
    aspect-ratio: 16/9;
    max-height: 50vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px 20px 0 0;
    flex-shrink: 0;
}

.video-project-card.expanded .project-video {
    opacity: 1;
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-project-card.expanded .video-poster { display: none; }
.video-project-card.expanded .project-overlay { opacity: 1; }

.video-project-card.expanded .project-info {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
    display: block !important;
}

/* ========== THESIS IMAGE SLIDER ========== */
.thesis-slider { position: relative; overflow: hidden; }
.thesis-slides { display: flex; width: 100%; height: 100%; transition: transform 0.5s ease-in-out; }
.thesis-slides img { min-width: 100%; height: 100%; object-fit: cover; }
.overlay-buttons { display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.overlay-buttons .project-preview-btn { transform: translateY(20px); font-size: 0.85rem; padding: 0.6rem 1.5rem; white-space: nowrap; }
.project-card:hover .overlay-buttons .project-preview-btn { transform: translateY(0); }
.project-card:hover .overlay-buttons .project-preview-btn:nth-child(2) { transition-delay: 0.1s; }

/* ========== MODAL ========== */
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.8); z-index: 2000; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.modal.active { display: flex; opacity: 1; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-content { background: var(--bg-secondary); border-radius: 20px; max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; position: relative; animation: slideUp 0.5s ease; }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.close-modal { position: absolute; top: 15px; right: 20px; font-size: 2rem; color: var(--text-primary); cursor: pointer; z-index: 10; transition: transform 0.3s ease; }
.close-modal:hover { transform: rotate(90deg); }
.modal-body { padding: 2rem; }
.modal-preview img { width: 100%; border-radius: 10px; margin-bottom: 1.5rem; }
.modal-details h2 { color: var(--text-primary); margin-bottom: 1rem; }
.modal-details p { color: var(--text-secondary); margin-bottom: 1.5rem; }
.modal-links { display: flex; gap: 1rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ========== VIDEO MODAL ========== */
.video-modal-content { max-width: 900px; background: #000; overflow: hidden; }
.video-container { position: relative; width: 100%; }
.video-container video { width: 100%; max-height: 80vh; border-radius: 10px; display: block; }
.close-video { color: white !important; z-index: 10; }

/* ========== CERTIFICATIONS ========== */
.certifications .category-title { font-size: 1.6rem; color: var(--text-primary); margin: 2.5rem 0 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--accent-color); display: flex; align-items: center; gap: 0.8rem; max-width: 1200px; margin-left: auto; margin-right: auto; }
.certifications .category-title:first-of-type { margin-top: 0; }
.certifications .category-title i { color: var(--accent-color); }
.cert-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-bottom: 2rem; }
.cert-card { background: var(--card-bg); backdrop-filter: blur(10px); padding: 2rem; border-radius: 20px; text-align: center; box-shadow: var(--card-shadow); border: 1px solid var(--glass-border); transition: all 0.3s ease; display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.cert-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2); }
.cert-icon { width: 70px; height: 70px; border-radius: 50%; background: var(--gradient-1); display: flex; align-items: center; justify-content: center; margin-bottom: 0.5rem; }
.cert-icon i { font-size: 2rem; color: white; }
.cert-card h3 { color: var(--text-primary); font-size: 1.1rem; }
.cert-card p { color: var(--text-secondary); font-size: 0.9rem; }
.cert-date { display: inline-block; padding: 0.3rem 1rem; background: var(--gradient-1); color: white; border-radius: 20px; font-size: 0.85rem; }
.cert-detail { color: var(--accent-color) !important; font-weight: 500 !important; font-size: 0.85rem !important; }
.cert-view-btn { margin-top: 0.5rem; padding: 0.5rem 1.5rem; background: transparent; color: var(--accent-color); border: 1px solid var(--accent-color); border-radius: 50px; cursor: pointer; font-family: 'Poppins', sans-serif; font-size: 0.85rem; font-weight: 500; transition: all 0.3s ease; display: flex; align-items: center; gap: 0.4rem; text-decoration: none; }
.cert-view-btn:hover { background: var(--accent-color); color: white; }
.seminar-image { width: 100%; height: 150px; border-radius: 15px; overflow: hidden; margin-bottom: 0.5rem; }
.seminar-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.cert-card:hover .seminar-image img { transform: scale(1.05); }
.cert-modal-content { max-width: 700px; background: var(--bg-secondary); }
.cert-modal-body { padding: 1.5rem; text-align: center; }
.cert-modal-body img { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 10px; border: 1px solid var(--border-color); }
.cert-modal-info { margin-top: 1rem; text-align: center; }
.cert-modal-info h3 { color: var(--text-primary); font-size: 1.2rem; }
.cert-modal-info p { color: var(--text-secondary); font-size: 0.9rem; }

/* ========== SPOTIFY ========== */
.spotify-section { max-width: 600px; margin: 3rem auto 0; text-align: center; }
.spotify-section h3 { color: var(--text-primary); margin-bottom: 1.5rem; font-size: 1.5rem; }

/* ========== CONTACT ========== */
.contact-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem; }
.contact-info h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--text-primary); }
.contact-info > p { color: var(--text-secondary); margin-bottom: 2rem; }
.contact-details { margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.contact-item i { font-size: 1.5rem; color: var(--accent-color); margin-top: 0.2rem; }
.contact-item h4 { color: var(--text-primary); }
.contact-item p { color: var(--text-secondary); }
.contact-form { background: var(--card-bg); backdrop-filter: blur(10px); padding: 2rem; border-radius: 20px; box-shadow: var(--card-shadow); border: 1px solid var(--glass-border); }
.form-group { margin-bottom: 1.5rem; }
.form-group input, .form-group textarea { width: 100%; padding: 1rem; background: var(--bg-primary); border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-family: 'Poppins', sans-serif; transition: border-color 0.3s ease; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--accent-color); }

/* ========== FOOTER ========== */
.footer { text-align: center; padding: 2rem; background: var(--bg-secondary); color: var(--text-secondary); border-top: 1px solid var(--border-color); }
.footer p { margin-bottom: 0.5rem; }

/* ========== RESPONSIVE - TABLET ========== */
@media (max-width: 968px) {
    .hero-content { flex-direction: column-reverse; text-align: center; }
    .hero-description { max-width: 100%; }
    .hero-buttons { justify-content: center; }
    .social-links { justify-content: center; }
    .image-wrapper { width: 250px; height: 250px; }
    .about-content { flex-direction: column; }
    .about-details { grid-template-columns: 1fr; }
    .timeline::before { left: 30px; }
    .timeline-item { width: 100%; padding-left: 70px !important; padding-right: 0 !important; }
    .timeline-item.left, .timeline-item.right { left: 0; }
    .timeline-content::before { left: -2.5rem !important; }
    .contact-container { grid-template-columns: 1fr; }
    .category-title { font-size: 1.4rem; padding: 0 1rem; }
    .video-project-card.expanded .video-thumbnail { max-height: 40vh; }
    .nav-logo { font-size: 0.85rem; }
}

/* ========== RESPONSIVE - MOBILE ========== */
@media (max-width: 768px) {
    html { font-size: 14px; }
    section { padding: 80px 1rem 40px; }
    .hero { padding: 120px 1rem 100px; }
    .nav-menu { position: fixed; left: -100%; top: 60px; flex-direction: column; background: var(--nav-bg); backdrop-filter: blur(20px); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); padding: 2rem 0; z-index: 998; }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .name { font-size: 2.2rem; }
    .typing-text { font-size: 1.1rem; }
    .section-title { font-size: 1.8rem; }
    .projects-grid { grid-template-columns: 1fr; }
    .cert-grid { grid-template-columns: 1fr; }
    .modal-body { flex-direction: column; }
    .modal-links { flex-direction: column; }
    .music-player { bottom: 20px; right: 20px; }
    .music-btn { width: 45px; height: 45px; font-size: 1rem; }
    .cert-modal-content { width: 95%; }
    .overlay-buttons { gap: 0.5rem; }
    .overlay-buttons .project-preview-btn { padding: 0.5rem 1rem; font-size: 0.8rem; }
    .video-project-card.expanded { width: 95vw; }
    .video-project-card.expanded .video-thumbnail { max-height: 30vh; }
    .video-modal-content { width: 95%; }
    .image-wrapper { width: 220px; height: 220px; }
    .hero-content { gap: 1.5rem; }
    .scroll-indicator { bottom: 50px; }
    .nav-logo { font-size: 0.8rem; }
    .social-links { margin-bottom: 1rem; }
}

/* ========== RESPONSIVE - SMALL MOBILE ========== */
@media (max-width: 480px) {
    .hero-buttons { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
    .image-wrapper { width: 180px; height: 180px; }
    .video-project-card.expanded .video-thumbnail { max-height: 25vh; }
    .name { font-size: 1.8rem; }
    .hero-description { font-size: 0.95rem; }
    .nav-logo { font-size: 0.7rem; }
    .nav-container { padding: 0.8rem 1rem; }
    .hero { padding: 110px 1rem 100px; }
    .scroll-indicator { bottom: 40px; }
}