/* 
* Portfolio Design System
* VIBRANT LIGHT MODE ONLY (Happy & Animated)
* Updated: 2026-02-04
*/

:root {
    /* Core Happy Colors */
    --bg-body: #ffffff;
    --bg-surface: #f8fafc;
    --bg-surface-2: #ffffff;
    
    --text-main: #1e293b;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    /* Vibrant Gradients & Accents */
    --primary: #3b82f6; 
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    
    --gradient-primary: linear-gradient(135deg, #22d3ee 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
    --gradient-text: linear-gradient(120deg, #2563eb, #9333ea);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-color: 0 20px 40px -10px rgba(59, 130, 246, 0.25);
    
    --border: #e2e8f0;
    --radius: 16px;
    
    /* Typography */
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --container-width: 1100px;
    --transition: cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy */
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Custom Selection Color */
::selection {
    background: var(--primary);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 5px;
    border: 2px solid var(--bg-surface);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

body {
    background-color: var(--bg-surface);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    /* Abstract shapes background for parallax */
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(34, 211, 238, 0.08) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08) 0%, transparent 25%);
    background-size: 120% 120%; /* Setup for parallax movement */
    background-attachment: fixed; 
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius);
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.1;
    color: var(--text-main);
}

h1 {
    font-size: clamp(3.5rem, 8vw, 5rem);
    letter-spacing: -0.04em;
    background: linear-gradient(120deg, #2563eb, #9333ea, #22d3ee, #2563eb);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    animation: gradient-flow 3s linear infinite;
}

@keyframes gradient-flow {
    to { background-position: 200% center; }
}

h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 4px;
}

/* Layout Utilities */
.container {
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 2rem;
}

.section {
    padding-block: 4rem; /* Increased for better separation on desktop */
}

/* Page Content Styles */
.page-header {
    padding-top: 8rem;
    padding-bottom: 4rem;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255,255,255,0.8), rgba(255,255,255,0));
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding-bottom: 6rem;
}

.content-section h2 { margin-top: 2rem; font-size: 1.8rem; }
.content-section p { margin-bottom: 1rem; font-size: 1rem; }
.content-section ul { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.5rem; color: var(--text-muted); }
.content-section li { margin-bottom: 0.5rem; }

/* Buttons */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: 100px;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s var(--transition), box-shadow 0.2s ease;
    border: none;
    font-size: 1rem;
    z-index: 1;
}

/* Shiny Button Effect */
.btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.3) 50%,
        rgba(255,255,255,0) 100%
    );
    transform: skewX(-25deg);
    transition: left 0.5s;
    z-index: -1;
}

.btn:hover::after {
    left: 150%;
    transition: left 0.7s;
}

.btn span { 
    pointer-events: none;
    position: absolute;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 0.5; }
    100% { width: 500px; height: 500px; opacity: 0; }
}

.btn:active {
    transform: scale(0.95) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 25px -10px rgba(37, 99, 235, 0.5);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 35px -10px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: white;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

/* Navbar */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding-block: 1.5rem;
    transition: all 0.4s ease;
}

/* Services (Improvised) */
.services-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.5rem; /* Reduced from 4rem */
}

.services-wrapper {
    display: grid;
    gap: 4rem;
}

@media (min-width: 900px) {
    .services-wrapper {
        grid-template-columns: 1.5fr 1fr;
        align-items: center;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.7);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.05); /* Softer shadow */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy */
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.15);
    background: white;
    border-color: var(--primary);
    z-index: 2;
}

/* Gradient blob on hover */
.service-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    filter: blur(40px);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.service-card:hover::before {
    opacity: 0.3;
}

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: var(--bg-surface);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotate(10deg);
    filter: drop-shadow(0 10px 15px rgba(37, 99, 235, 0.4));
    /* Removed gradient text clip as it hides emojis */
}

/* Override emoji color if needed, but emojis are fine */

.services-visual {
    display: none;
}

@media (min-width: 900px) {
    .services-visual {
        display: block;
        position: relative;
    }
}

.services-img {
    width: 100%;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1));
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.header.scrolled {
    padding-block: 1rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    background: rgba(255,255,255,0.5);
    padding: 0.5rem 1.5rem;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
}

.logo {
    font-size: 1.8rem; /* Increased from 1.5rem */
    font-weight: 800; /* Slightly bolder */
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05); /* Subtle grow effect */
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s var(--transition);
    border-radius: 2px;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero */
.hero {
    min-height: auto; /* Allow content to dictate height on smaller screens if needed, but keeping min-height for visuals */
    display: flex;
    align-items: center;
    padding-top: 5rem; 
    padding-bottom: 0; /* Removed padding bottom completely */
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem; /* Reduced gap */
    align-items: center;
}

@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
    }
}

.hero-tags {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tag-item {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tag-item::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 10px #22c55e;
}

.cta-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* Profile Image */
.hero-profile-container {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-profile-img {
    width: 380px;
    height: 380px;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: var(--shadow-color);
    transform: rotate(3deg);
    transition: transform 0.5s var(--transition);
    z-index: 2;
    border: 4px solid white;
}

.hero-profile-container:hover .hero-profile-img {
    transform: rotate(0deg) scale(1.02);
}

.hero-profile-blob {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 100%;
    height: 100%;
    background: var(--gradient-secondary);
    border-radius: 30px;
    opacity: 0.3;
    filter: blur(40px);
    z-index: 1;
    animation: blob-float 5s infinite alternate;
}

@keyframes blob-float {
    from { transform: translate(0, 0); }
    to { transform: translate(-10px, -20px); }
}

/* Image Sections */
.tech-stack-banner {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.clients-banner {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 4rem;
    display: block;
    opacity: 0.8;
}

/* Tech Stack */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.tech-category h4 {
    color: var(--primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.tech-list li {
    background: white;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s ease;
}

.tech-list li:hover {
    transform: translateX(5px);
    color: var(--primary);
}

/* Projects */
/* Projects Polish */
.project-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.4s var(--transition);
    margin-bottom: 4rem; /* Increased spacing */
    display: grid;
    grid-template-columns: 1fr;
    border: 1px solid var(--border);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-color);
    border-color: var(--primary);
}

.project-image-container {
    height: 100%;
    min-height: 320px;
    overflow: hidden;
    cursor: zoom-in; /* Indicate clickable */
    position: relative;
}

.project-image-container::after {
    content: 'View Full Image';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    pointer-events: none;
}

.project-image-container:hover::after {
    opacity: 1;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.05); /* Softer scale */
}

.project-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
    .project-card {
        grid-template-columns: 1.2fr 1fr;
    }
    .project-card:nth-child(even) .project-image-container {
        order: 2;
    }
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-color);
}

.project-image-container {
    height: 100%;
    min-height: 300px;
    overflow: hidden;
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img {
    transform: scale(1.08);
}

.project-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tech-tag {
    background: var(--bg-surface);
    color: var(--text-main);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
}

/* Contact */
.contact-form {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
    display: grid;
    gap: 2rem;
    border: 1px solid rgba(255,255,255,0.6);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-primary);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-main);
    font-size: 0.95rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    color: var(--text-main);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.contact-form .btn {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

/* Experience Timeline */
.experience-section {
    position: relative;
    padding-left: 2rem;
}

.experience-section::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 1.5rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2.6rem; /* Adjust based on parent padding */
    top: 0.25rem;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
}

.timeline-date {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.25rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-role {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.timeline-company {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.timeline-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Animations - Scroll Reveal */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s var(--transition);
}

.animate-on-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
/* Footer */
.footer {
    text-align: center;
    padding: 5rem 0 3rem;
    background: white;
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.footer p {
    margin: 0 auto;
    font-size: 0.9rem;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--border);
    text-decoration: none;
}

.social-link svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    color: white;
    border-color: transparent;
    box-shadow: 0 10px 20px -5px rgba(59, 130, 246, 0.4);
}

.social-link:hover svg {
    transform: scale(1.1);
}

.social-link.linkedin:hover { background: #0077b5; }
.social-link.instagram:hover { background: #E1306C; } /* Simple solid for hover */
.social-link.facebook:hover { background: #1877F2; }

.footer-links {
    margin-bottom: 1.5rem !important;
    gap: 2rem !important;
}

.footer-links a {
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

.footer-links a:hover {
    color: var(--primary);
}

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: var(--text-main);
    cursor: pointer;
    z-index: 1001;
}

/* =========================================
   MOBILE DESIGN OVERHAUL
   ========================================= */

@media (max-width: 768px) {
    /* Global Mobile Adjustments */
    .section { 
        padding-block: 2.5rem; /* Reduced to match desktop tighten */
        scroll-margin-top: 80px; /* offset for sticky header */
    }
    
    .container {
        padding-inline: 1.5rem;
    }

    /* Typography */
    h1 { 
        font-size: 2.75rem; 
        line-height: 1.1; 
        text-align: center;
    }
    
    h2 { 
        font-size: 2rem; 
        text-align: center; 
    }
    
    p { 
        font-size: 1rem; 
        text-align: center; 
        margin-inline: auto;
    }

    /* Hero Section - Mobile */
    .hero { 
        padding-top: 5rem; 
        align-items: center; 
        text-align: center; 
        min-height: auto;
        padding-bottom: 0; /* Removed padding */
    }
    
    .hero-grid {
        gap: 3rem;
    }
    
    .hero-content { 
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 1rem; 
    }
    
    .hero-tags {
        justify-content: center;
        flex-wrap: wrap;
    }

    /* Center profile image & resizing */
    .hero-profile-container { 
        order: -1; 
        margin-bottom: 1rem;
    }
    
    .hero-profile-img { 
        width: 260px; 
        height: 260px; 
        border-width: 3px;
    }

    /* Mobile Buttons */
    .cta-group {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
        padding-inline: 1rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem;
        font-size: 1.1rem;
    }

    /* Services Section - Mobile */
    .services-header {
        margin-bottom: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr; /* Single column for focus */
        gap: 1.5rem;
    }

    .service-card {
        padding: 1.75rem;
        text-align: center;
        /* Subtle slide-in animation handled by JS, but add mobile verify style */
        transform: translateY(0); 
    }
    
    .service-icon {
        margin-inline: auto; /* Center icon */
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    /* Projects Section - Mobile */
    .project-card {
        margin-bottom: 2.5rem;
    }
    
    .project-content { 
        padding: 1.75rem; 
        text-align: center;
    }
    
    .project-meta {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .project-tech {
        justify-content: center;
    }

    /* Tech Stack - Mobile */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on mobile instead of 1 */
        gap: 1rem;
    }
    
    .tech-list li {
        font-size: 0.85rem;
        padding: 0.6rem;
        justify-content: center;
    }

    /* Contact Section - Mobile */
    .contact-form {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .form-input, .form-textarea {
        padding: 1rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: block;
        font-size: 1.8rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: 1px solid rgba(0,0,0,0.05);
        box-shadow: -20px 0 50px rgba(0,0,0,0.1);
        z-index: 1000;
        visibility: hidden; /* Fix accessibility focus when hidden */
    }

    .nav-links.active {
        transform: translateX(0);
        visibility: visible;
    }
    
    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        color: var(--text-main);
    }
    
    /* Center Footer Links */
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Small Foldable/Phone fix */
@media (max-width: 380px) {
    h1 { font-size: 2.2rem; }
    .hero-profile-img { width: 220px; height: 220px; }
    .tech-grid { grid-template-columns: 1fr; }
}
