﻿/* Modern Portfolio - Unique Design by Carlos Mensah */
:root {
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --card-bg: #1c2128;
    --accent-red: #10b981;
    --accent-blue: #34d399;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --gradient-red: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --gradient-blue: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
    --gradient-mixed: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    --font-primary: 'Calibre', 'Inter', sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;
    --radius-md: 5px; --radius-lg: 6px;
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --transition-fast: 0.2s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--accent-red) var(--primary-bg); overflow: hidden; }
html.show { overflow-y: auto; }
body {min-height: 100%; margin: 0; font-family: var(--font-primary); background: var(--primary-bg); color: var(--text-primary); overflow-x: hidden; font-size: 16px; }
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--primary-bg); }
body::-webkit-scrollbar-thumb { background: var(--accent-red); border-radius: 3px; }
.bodyy { opacity: 0; transition: opacity 0.5s; }
.bodyy.show { opacity: 1; overflow-x: hidden; overflow-y: auto; }
.loading { position: fixed; inset: 0; background: var(--primary-bg); display: flex; align-items: center; justify-content: center; z-index: 99999999; overflow: hidden; }
.loading.lding-hide { opacity: 0; visibility: hidden; }
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.loading-logo { width: 80px; height: 80px; animation: pulse 1.5s ease-in-out infinite; filter: drop-shadow(0 0 20px var(--accent-red)); }
.loader-content p { font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-secondary); letter-spacing: 2px; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.1); } }
.bg-decoration { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.circle { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.1; }
.circle-1 { width: 500px; height: 500px; background: var(--accent-red); top: -150px; right: -150px; animation: float 20s ease-in-out infinite; }
.circle-2 { width: 400px; height: 400px; background: var(--accent-blue); bottom: -100px; left: -100px; animation: float 15s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, -30px); } }
.floating-nav { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 1000; width: 90%; max-width: 1200px; }
.nav-container { background: rgba(28, 33, 40, 0.7); backdrop-filter: blur(40px) saturate(180%); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 8px; padding: 1rem 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo img { width: 40px; height: 40px; filter: drop-shadow(0 0 8px var(--accent-red)); }
.logo span { background: var(--gradient-mixed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 1.5rem; }
.nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; padding: 8px 16px; transition: var(--transition-fast); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--text-primary); }
.nav-link::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--gradient-mixed); transition: width var(--transition-fast); }
.nav-link:hover::after, .nav-link.active::after { width: 80%; }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 5px; }
.menu-toggle span { width: 25px; height: 2px; background: var(--text-primary); transition: all 0.3s ease; transform-origin: center; display: block; }
.mobile-menu { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: rgba(28, 33, 40, 0.95); backdrop-filter: blur(40px) saturate(180%); border-left: 1px solid rgba(255, 255, 255, 0.15); padding: 5rem 2rem; z-index: 999; transition: right 0.3s; }
.mobile-menu.active { right: 0; }
.mobile-link { color: var(--text-primary); text-decoration: none; font-size: 1.15rem; padding: 0.5rem; display: block; margin-bottom: 1rem; }
.mobile-social { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-social-link { display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0.5rem; color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; transition: 0.3s ease; border-radius: 3px; }
.mobile-social-link:hover { color: var(--accent-red); background: rgba(16, 185, 129, 0.1); transform: translateX(4px); }
.mobile-social-link svg { flex-shrink: 0; }
.main-content { position: relative; z-index: 1; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-header { margin-bottom: 5rem; text-align: center; }
.section-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; margin-bottom: 1rem; }
.title-number { display: block; font-family: var(--font-mono); font-size: 1rem; color: var(--accent-red); margin-bottom: 0.5rem; letter-spacing: 2px; }
.title-decoration { width: 80px; height: 4px; background: var(--gradient-mixed); margin: 1.5rem auto; border-radius: 1px; }
.hero-section { min-height: 100vh; display: flex; align-items: center; padding: 5rem 2rem; }
.hero-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.greeting { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.wave { font-size: 1.5rem; animation: wave 2s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(0deg); } 25% { transform: rotate(20deg); } }
.greeting-text { font-size: 1.1rem; color: var(--text-secondary); font-family: var(--font-mono); }
.hero-title { font-size: clamp(2.5rem, 8vw, 4.5rem); font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; }
.name-line { display: block; }
.gradient-text { background: var(--gradient-mixed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-subtitle { font-size: clamp(1.25rem, 3vw, 1.75rem); color: var(--text-secondary); margin-bottom: 2rem; }
.hero-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; max-width: 600px; margin-bottom: 3rem; }
.hero-cta { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn { padding: 14px 36px; border-radius: var(--radius-md); font-weight: 600; font-size: 1rem; text-decoration: none; transition: var(--transition-fast); border: 2px solid transparent; }
.btn-primary { background: var(--gradient-red); color: white; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--accent-blue); border-color: var(--accent-blue); }
.btn-secondary:hover { background: var(--accent-blue); color: white; }
.visual-card { background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-lg); padding: 3rem; position: relative; overflow: hidden; }
.visual-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--gradient-mixed); }
.visual-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(52, 211, 153, 0.05) 100%); pointer-events: none; border-radius: var(--radius-lg); }
.code-snippet { font-family: var(--font-mono); font-size: 0.95rem; line-height: 1.8; }
.indent { padding-left: 1.5rem; }
.keyword { color: #6ee7b7; }
.property { color: var(--accent-blue); }
.string { color: #50fa7b; }
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.scroll-indicator { position: absolute; bottom: 3rem; left: 50%; transform: translateX(-50%); text-align: center; color: var(--text-secondary); font-size: 0.95rem; font-family: var(--font-mono); }
.about-section { padding: 5rem 0; background: var(--secondary-bg); }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 5rem; }
.about-card { background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-lg); padding: 3rem; transition: transform 0.3s ease; }
.about-card:hover { transform: translateY(-4px); }
.about-text { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 1.5rem; }
.tech-stack { margin-top: 3rem; }
.tech-stack h3 { font-size: 1.15rem; margin-bottom: 1.5rem; }
.tech-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.tech-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; background: rgba(22, 27, 34, 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px; font-size: 0.95rem; transition: 0.3s ease; }
.tech-item:hover { background: rgba(13, 17, 23, 0.7); transform: translateX(4px); }
.tech-icon { display: flex; align-items: center; justify-content: center; }
.tech-icon svg { width: 20px; height: 20px; color: var(--accent-red); transition: 0.3s ease; }
.tech-item:hover .tech-icon svg { transform: scale(1.1); }
.image-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.profile-img { width: 100%; display: block; transition: 0.3s; }
.image-frame:hover .profile-img { transform: scale(1.05); }
.image-frame::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, transparent 50%, rgba(52, 211, 153, 0.1) 100%); pointer-events: none; }
.frame-decoration { position: absolute; width: 60px; height: 60px; border: 3px solid var(--accent-red); }
.frame-top-left { top: -12px; left: -12px; border-right: none; border-bottom: none; }
.frame-bottom-right { bottom: -12px; right: -12px; border-left: none; border-top: none; }
.stats-cards { display: flex; gap: 1.5rem; margin-top: 2rem; }
.stat-card { flex: 1; background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-md); padding: 1.5rem; text-align: center; position: relative; overflow: hidden; transition: transform 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--gradient-red); }
.stat-number { font-size: 2rem; font-weight: 700; background: var(--gradient-mixed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-label { font-size: 0.95rem; color: var(--text-secondary); margin-top: 0.5rem; }
.experience-section { padding: 5rem 0; }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--gradient-mixed); transform: translateX(-50%); }
.timeline-item { margin-bottom: 5rem; position: relative; }
.timeline-item:nth-child(odd) .timeline-content { margin-left: auto; padding-left: 3rem; }
.timeline-item:nth-child(even) .timeline-content { margin-right: auto; padding-right: 3rem; }
.timeline-marker { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: var(--accent-red); box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 8px var(--accent-red); z-index: 2; }
.timeline-item:nth-child(even) .timeline-marker { background: var(--accent-blue); box-shadow: 0 0 0 4px var(--primary-bg), 0 0 0 8px var(--accent-blue); }
.timeline-content { width: 48%; }
.timeline-card { background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-lg); padding: 3rem; transition: 0.3s ease; }
.timeline-card:hover { transform: translateY(-8px); }
.card-header { display: flex; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.role-title { font-size: 1.4rem; font-weight: 700; }
.timeline-date { font-family: var(--font-mono); font-size: 0.95rem; color: var(--accent-red); padding: 4px 12px; background: rgba(16, 185, 129, 0.15); backdrop-filter: blur(10px); border: 1px solid rgba(16, 185, 129, 0.3); border-radius: 3px; }
.company-info { display: flex; gap: 1.5rem; margin-bottom: 2rem; font-size: 0.95rem; color: var(--text-secondary); }
.company-name { font-weight: 600; color: var(--accent-blue); }
.achievements { list-style: none; margin-bottom: 2rem; }
.achievements li { position: relative; padding-left: 1.5rem; margin-bottom: 1rem; color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; }
.achievements li::before { content: '▹'; position: absolute; left: 0; color: var(--accent-red); font-size: 1rem; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 1rem; }
.tag { padding: 4px 12px; background: rgba(22, 27, 34, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); color: var(--text-secondary); font-size: 0.95rem; border-radius: 3px; font-family: var(--font-mono); }
.projects-section { padding: 5rem 0; background: var(--secondary-bg); }
.projects-section .section-header { opacity: 0; animation: fadeInScale 0.4s ease forwards; animation-play-state: paused; }
.projects-carousel-wrapper { position: relative; max-width: 100%; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; background: rgba(28, 33, 40, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: var(--accent-red); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all 0.3s ease; opacity: 0; animation: fadeInScale 0.4s ease 0.4s forwards; }
.carousel-btn:hover { background: var(--accent-red); color: var(--primary-bg); transform: translateY(-50%) scale(1.1); }
.carousel-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-btn:disabled:hover { background: rgba(28, 33, 40, 0.8); color: var(--accent-red); transform: translateY(-50%); }
.carousel-btn-left { left: -60px; }
.carousel-btn-right { right: -60px; }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; transition: transform 0.5s ease; }
.project-card { background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-lg); overflow: hidden; transition: all 0.3s ease; opacity: 0; animation: slideInUp 0.5s ease forwards; }
.project-card:nth-child(1) { animation-delay: 0.05s; }
.project-card:nth-child(2) { animation-delay: 0.15s; }
.project-card:nth-child(3) { animation-delay: 0.25s; }
.project-card:nth-child(4) { animation-delay: 0.35s; }
.project-card:nth-child(5) { animation-delay: 0.45s; }
.project-card:nth-child(6) { animation-delay: 0.55s; }
.project-card.animated { opacity: 1; }
.project-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15); }
.project-image-wrapper { position: relative; overflow: hidden; height: 250px; }
.project-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: 0.3s; }
.project-card:hover .project-image-wrapper img { transform: scale(1.1); }
.project-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(13, 17, 23, 0.9) 100%); display: flex; align-items: flex-end; justify-content: center; padding: 2rem; opacity: 0; transition: 0.3s; }
.project-card:hover .project-overlay { opacity: 1; }
.overlay-links { display: flex; gap: 1.5rem; }
.overlay-link { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(28, 33, 40, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; color: var(--text-primary); transition: 0.3s ease; }
.overlay-link:hover { background: var(--accent-red); transform: translateY(-4px); }
.project-info { padding: 3rem; background: rgba(13, 17, 23, 0.4); backdrop-filter: blur(10px); }
.project-label { font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-red); text-transform: uppercase; letter-spacing: 1px; }
.project-name { font-size: 1.5rem; font-weight: 700; margin: 1rem 0; }
.project-description { color: var(--text-secondary); font-size: 1.05rem; line-height: 1.6; margin-bottom: 1.5rem; }
.project-tech-stack { display: flex; flex-wrap: wrap; gap: 1rem; }
.project-tech-stack span { padding: 4px 12px; background: rgba(22, 27, 34, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.95rem; border-radius: 3px; font-family: var(--font-mono); }
.contact-section { padding: 5rem 0; }
.contact-content { max-width: 700px; margin: 0 auto; text-align: center; }
.contact-heading { font-size: clamp(1.65rem, 4vw, 2.25rem); font-weight: 700; margin-bottom: 1.5rem; background: var(--gradient-mixed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.contact-desc { font-size: 1.1rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 3rem; }
.contact-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; margin-bottom: 3rem; }
.contact-method { display: flex; align-items: center; gap: 1.5rem; padding: 2rem; background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(30px) saturate(150%); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: var(--radius-md); text-decoration: none; transition: 0.3s ease; }
.contact-method:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.5); }
.method-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(22, 27, 34, 0.8); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 3px; color: var(--accent-red); }
.method-info { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.method-label { font-size: 0.95rem; color: var(--text-secondary); }
.method-value { font-size: 1rem; color: var(--text-primary); font-weight: 500; }
.social-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 3rem; }
.social-link { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(28, 33, 40, 0.6); backdrop-filter: blur(20px); border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 50%; color: var(--text-secondary); transition: 0.3s ease; }
.social-link:hover { background: var(--accent-red); color: white; transform: translateY(-4px); }
.cta-button { display: inline-block; padding: 16px 48px; background: var(--gradient-mixed); color: white; font-weight: 600; font-size: 1.05rem; text-decoration: none; border-radius: var(--radius-md); transition: 0.3s; }
.cta-button:hover { transform: translateY(-4px); }
.footer { background: var(--secondary-bg); border-top: 1px solid rgba(255, 255, 255, 0.1); padding: 3rem 0; text-align: center; }
.footer-text { color: var(--text-secondary); font-size: 1rem; }
.highlight { color: var(--accent-red); font-weight: 600; }
.footer-year { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.5rem; }
@media (max-width: 1024px) {
    .hero-container, .about-grid { grid-template-columns: 1fr; }
    .hero-section { padding-bottom: 5rem; }
    .hero-visual { margin-bottom: 2rem; }
    .timeline::before { left: 20px; }
    .timeline-item:nth-child(odd) .timeline-content, .timeline-item:nth-child(even) .timeline-content { width: calc(100% - 60px); margin-left: 60px; padding: 0; }
    .timeline-marker { left: 20px; }
    .carousel-btn-left { left: -50px; }
    .carousel-btn-right { right: -50px; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .menu-toggle { display: flex; }
    .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .projects-grid { grid-template-columns: 1fr; gap: 2rem; }
    .tech-grid { grid-template-columns: 1fr; gap: 0.85rem; }
    .carousel-btn { width: 40px; height: 40px; }
    .carousel-btn-left { left: 5px; }
    .carousel-btn-right { right: 5px; }
    
    /* Maximum width mobile optimization */
    body { overflow-x: hidden; }
    .floating-nav { width: 92%; top: 8px; }
    .nav-container { padding: 0.7rem 1rem; }
    .container { padding: 0 1.25rem; max-width: 100%; }
    .hero-section { padding: 4.5rem 1.25rem 6rem; }
    .hero-container { gap: 2.5rem; max-width: 100%; }
    .hero-visual { margin-bottom: 2rem; }
    .about-grid, .timeline { max-width: 100%; }
    .hero-cta { justify-content: stretch; gap: 1rem; }
    .hero-cta .btn { flex: 1; text-align: center; padding: 12px 16px; font-size: 0.9rem; }
    .section-header { margin-bottom: 2.5rem; }
    .about-section, .experience-section, .projects-section, .contact-section { padding: 2.5rem 0; }
    .about-card, .timeline-card { padding: 1.25rem; }
    .project-card { padding: 0; margin: 0; }
    .project-info { padding: 1.25rem; }
    .visual-card { padding: 1.25rem; }
    .stat-card { padding: 0.85rem; }
    .stats-cards { gap: 0.85rem; margin-top: 1.25rem; }
    .contact-method { padding: 1.25rem; gap: 1rem; }
    .contact-methods { gap: 1rem; }
    .footer { padding: 1.75rem 1.25rem; }
    .mobile-menu { width: 85%; max-width: 300px; padding: 5rem 1.25rem; }
    .title-decoration { margin: 1.25rem auto; }
    .scroll-indicator { bottom: 2rem; }
}

@media (max-width: 480px) {
    .floating-nav { width: 92%; top: 4px; }
    .nav-container { padding: 0.6rem 0.85rem; }
    .logo { font-size: 0.9rem; }
    .logo img { width: 35px; height: 35px; }
    .container { padding: 0 1rem; max-width: 100%; }
    .hero-section { padding: 3.75rem 1rem 7rem; }
    .hero-container { max-width: 100%; }
    .hero-visual { margin-bottom: 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .hero-subtitle { font-size: 1.25rem; }
    .hero-desc { margin-bottom: 2rem; font-size: 1rem; }
    .hero-cta { flex-direction: column; gap: 0.85rem; }
    .hero-cta .btn { width: 100%; }
    .btn { padding: 12px 24px; font-size: 0.95rem; }
    .section-title { font-size: 1.75rem; }
    .section-header { margin-bottom: 2rem; }
    .about-section, .experience-section, .projects-section, .contact-section { padding: 2rem 0; }
    .about-card, .timeline-card { padding: 1rem; }
    .about-grid, .timeline { max-width: 100%; }
    .projects-grid { gap: 1.5rem; }
    .tech-grid { gap: 0.65rem; }
    .project-card { margin: 0; padding: 0; }
    .project-info { padding: 1rem; }
    .visual-card { padding: 1rem; }
    .code-snippet { font-size: 0.8rem; }
    .stat-card { padding: 0.75rem; }
    .stats-cards { gap: 0.65rem; margin-top: 1rem; }
    .contact-methods { grid-template-columns: 1fr; gap: 0.85rem; }
    .contact-method { padding: 1rem; flex-direction: column; text-align: center; }
    .method-info { align-items: center; text-align: center; }
    .mobile-menu { width: 90%; padding: 4rem 0.85rem; }
    .footer { padding: 1.5rem 1rem; }
    .tech-stack { margin-top: 2rem; }
    .tech-stack h3 { font-size: 1.05rem; margin-bottom: 1.25rem; }
    .about-text { margin-bottom: 1.25rem; }
    .carousel-btn-left { left: 2px; }
    .carousel-btn-right { right: 2px; }
    .title-decoration { margin: 1rem auto; }
    .scroll-indicator { bottom: 2rem; font-size: 0.85rem; }
    .scroll-indicator svg { width: 20px; height: 20px; }
    
    /* Faster animations on mobile for better performance */
    .project-card {
        animation-duration: 0.4s;
    }
    .carousel-btn {
        animation-duration: 0.25s;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .project-card {
        opacity: 1;
        animation: none;
    }
    .carousel-btn {
        opacity: 1;
        animation: none;
    }
}
