
        /* ============================================ */
        /* ========== CSS VARIABLES (Light/Dark) ====== */
        /* ============================================ */
        :root {
            --bg-body: #f0f4f9;
            --bg-card: #ffffff;
            --bg-card-hover: #fafcff;
            --bg-section: #f5f8fc;
            --bg-tag: #e8f0fe;
            --bg-tag-hover: #d2e3fc;
            --bg-contact: #f5f8fc;
            --bg-footer: #e8edf4;
            --bg-overlay: rgba(0, 0, 0, 0.5);
            --bg-policy: #ffffff;
            --text-primary: #0a1a2e;
            --text-secondary: #1a2a3e;
            --text-muted: #5a6a7e;
            --text-light: #4a5a6e;
            --border-color: #e8edf4;
            --border-light: #d0d9e8;
            --shadow: rgba(0, 50, 100, 0.08);
            --shadow-hover: rgba(26, 115, 232, 0.15);
            --btn-outline: #1a73e8;
            --avatar-outline: #1a73e8;
            --scrollbar-track: #e8edf4;
            --scrollbar-thumb: #1a73e8;
            --transition: all 0.3s ease;
            --whatsapp-color: #25D366;
        }

        /* Dark Mode */
        [data-theme="dark"] {
            --bg-body: #0a0e1a;
            --bg-card: #141b2d;
            --bg-card-hover: #1a2338;
            --bg-section: #111827;
            --bg-tag: #1a2a4a;
            --bg-tag-hover: #2a3a5a;
            --bg-contact: #111827;
            --bg-footer: #0d1424;
            --bg-policy: #141b2d;
            --text-primary: #e8edf4;
            --text-secondary: #c8d0dc;
            --text-muted: #8a9ab0;
            --text-light: #aab4c8;
            --border-color: #1a2a4a;
            --border-light: #2a3a5a;
            --shadow: rgba(0, 0, 0, 0.3);
            --shadow-hover: rgba(26, 115, 232, 0.25);
            --btn-outline: #4a8af4;
            --avatar-outline: #4a8af4;
            --scrollbar-track: #1a2a4a;
            --scrollbar-thumb: #4a8af4;
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            background: var(--bg-body);
            font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            padding: 1rem;
            display: flex;
            justify-content: center;
            color: var(--text-primary);
            min-height: 100vh;
            transition: var(--transition);
        }

        /* ===== SCROLL PROGRESS BAR ===== */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            width: 0;
            height: 4px;
            background: linear-gradient(90deg, #1a73e8, #7c3aed);
            z-index: 9999;
            transition: width 0.1s ease;
            border-radius: 0 4px 4px 0;
        }

        ::-webkit-scrollbar {
            width: 6px;
        }
        ::-webkit-scrollbar-track {
            background: var(--scrollbar-track);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb {
            background: var(--scrollbar-thumb);
            border-radius: 10px;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #1557b0;
        }

        .portfolio {
            max-width: 1100px;
            width: 100%;
            background: var(--bg-card);
            border-radius: 2rem;
            box-shadow: 0 20px 40px -10px var(--shadow);
            padding: 2rem 2rem 1.5rem;
            transition: var(--transition);
            animation: fadeInPage 0.8s ease forwards;
            position: relative;
            z-index: 1;
        }

        @keyframes fadeInPage {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* ============================================ */
        /* ========== TOP CONTROLS BAR ================ */
        /* ============================================ */
        .top-controls {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        .top-controls-left {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .top-controls-right {
            display: flex;
            align-items: center;
            gap: 0.8rem;
        }

        .theme-toggle-top {
            background: var(--bg-section);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.4rem 0.9rem;
            border-radius: 40px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 0.4rem;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
        }
        .theme-toggle-top:hover {
            border-color: #1a73e8;
            transform: translateY(-2px);
            box-shadow: 0 4px 15px var(--shadow-hover);
        }
        .theme-toggle-top i {
            font-size: 0.8rem;
            color: #1a73e8;
        }

        .lang-select-top {
            background: var(--bg-section);
            border: 1px solid var(--border-color);
            color: var(--text-primary);
            padding: 0.4rem 2.2rem 0.4rem 0.9rem;
            border-radius: 40px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 500;
            font-family: 'Poppins', sans-serif;
            transition: var(--transition);
            appearance: none;
            -webkit-appearance: none;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231a73e8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
            background-repeat: no-repeat;
            background-position: right 0.7rem center;
            background-size: 10px;
        }
        .lang-select-top:hover {
            border-color: #1a73e8;
            box-shadow: 0 4px 15px var(--shadow-hover);
        }
        .lang-select-top option {
            background: var(--bg-card);
            color: var(--text-primary);
            padding: 0.3rem;
        }

        /* ============================================ */
        /* ========== FLOATING WHATSAPP BUTTON ======== */
        /* ============================================ */
        .whatsapp-float {
            position: fixed;
            bottom: 25px;
            right: 25px;
            background: #25D366;
            color: white;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
            z-index: 999;
            transition: all 0.3s ease;
            text-decoration: none;
            animation: pulse-whatsapp 2s infinite;
        }

        .whatsapp-float:hover {
            transform: scale(1.1) translateY(-5px);
            box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
            color: white;
        }

        @keyframes pulse-whatsapp {
            0% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
            }
            70% {
                box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
            }
            100% {
                box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
            }
        }

        @media (max-width: 768px) {
            .whatsapp-float {
                width: 50px;
                height: 50px;
                font-size: 1.6rem;
                bottom: 15px;
                right: 15px;
            }
        }

        /* ============================================ */
        /* ========== POLICY OVERLAY ================= */
        /* ============================================ */
        .policy-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: var(--bg-overlay);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding: 2rem;
            animation: fadeInOverlay 0.3s ease;
        }
        .policy-overlay.active {
            display: flex;
        }
        @keyframes fadeInOverlay {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .policy-content {
            background: var(--bg-policy);
            border-radius: 1.5rem;
            padding: 2.5rem;
            max-width: 750px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            position: relative;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
            animation: slideUpPolicy 0.3s ease;
            color: var(--text-primary);
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
        }
        @keyframes slideUpPolicy {
            from {
                transform: translateY(30px) rotateX(5deg);
                opacity: 0;
            }
            to {
                transform: translateY(0) rotateX(0);
                opacity: 1;
            }
        }

        .policy-content h2 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
            color: #1a73e8;
            font-weight: 700;
        }
        .policy-content .policy-date {
            color: var(--text-muted);
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            display: block;
        }
        .policy-content h3 {
            font-size: 1.1rem;
            margin: 1.5rem 0 0.5rem;
            color: var(--text-primary);
            font-weight: 600;
        }
        .policy-content p {
            color: var(--text-secondary);
            line-height: 1.8;
            margin-bottom: 0.8rem;
            font-size: 0.95rem;
        }
        .policy-content ul {
            color: var(--text-secondary);
            line-height: 1.8;
            padding-left: 1.5rem;
            margin-bottom: 0.8rem;
            font-size: 0.95rem;
        }
        .policy-content ul li {
            margin-bottom: 0.3rem;
        }

        .policy-close-btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: #1a73e8;
            color: white;
            border: none;
            padding: 0.6rem 1.6rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            transition: var(--transition);
            margin-top: 1.5rem;
            font-family: 'Poppins', sans-serif;
        }
        .policy-close-btn:hover {
            background: #1557b0;
            transform: translateY(-2px) scale(1.02);
        }

        /* ----- Fade Sections ----- */
        .fade-section {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        .fade-section.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* Staggered children */
        .stagger-children>* {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }
        .stagger-children.visible>*:nth-child(1) {
            transition-delay: 0.05s;
        }
        .stagger-children.visible>*:nth-child(2) {
            transition-delay: 0.15s;
        }
        .stagger-children.visible>*:nth-child(3) {
            transition-delay: 0.25s;
        }
        .stagger-children.visible>*:nth-child(4) {
            transition-delay: 0.35s;
        }
        .stagger-children.visible>* {
            opacity: 1;
            transform: translateY(0);
        }

        /* ----- 3D Card Effect ----- */
        .card-3d {
            transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.4s ease;
            transform-style: preserve-3d;
            will-change: transform;
        }

        .card-3d:hover {
            transform: rotateY(2deg) rotateX(2deg) scale(1.02);
            box-shadow: 0 25px 50px -12px rgba(26, 115, 232, 0.2);
        }

        /* ----- Typography ----- */
        .section-title {
            font-size: 1.5rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            margin: 2.5rem 0 1.2rem 0;
            padding-bottom: 0.6rem;
            border-bottom: 2px solid var(--border-color);
            display: flex;
            align-items: center;
            gap: 0.6rem;
            transition: var(--transition);
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
        }
        .section-title i {
            color: #1a73e8;
            opacity: 0.8;
            font-size: 1.3rem;
            transition: transform 0.3s ease;
        }
        .section-title:hover i {
            transform: rotate(10deg) scale(1.1);
        }

        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            border: 1px solid var(--border-light);
            padding: 0.6rem 1.6rem;
            border-radius: 60px;
            font-weight: 600;
            font-size: 0.85rem;
            text-decoration: none;
            color: var(--text-primary);
            background: var(--bg-card);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
            cursor: pointer;
            position: relative;
            overflow: hidden;
            font-family: 'Poppins', sans-serif;
        }
        .btn::after {
            content: '';
            position: absolute;
            inset: 0;
            background: rgba(26, 115, 232, 0.06);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.4s ease;
            border-radius: 60px;
        }
        .btn:hover::after {
            transform: scaleX(1);
            transform-origin: left;
        }
        .btn-primary {
            background: #1a73e8;
            border-color: #1a73e8;
            color: white;
        }
        .btn-primary i {
            color: white;
        }
        .btn-primary:hover {
            background: #1557b0;
            border-color: #1557b0;
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 8px 25px rgba(26, 115, 232, 0.25);
        }
        .btn-outline {
            border-color: var(--btn-outline);
            color: var(--btn-outline);
        }
        .btn-outline i {
            color: var(--btn-outline);
        }
        .btn-outline:hover {
            background: var(--bg-tag);
            border-color: var(--btn-outline);
            transform: translateY(-2px);
            box-shadow: 0 8px 25px var(--shadow-hover);
        }

        .brand-name {
            font-weight: 800;
            color: #1a73e8;
            letter-spacing: 0.5px;
        }

        /* ----- Hero ----- */
        .hero {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 2rem;
            margin-bottom: 0.5rem;
        }
        .hero-content {
            flex: 2 1 280px;
        }

        .typed-headline {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.2;
            letter-spacing: -0.02em;
            margin: 0.4rem 0 0.4rem;
            min-height: 4rem;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
        }
        .typed-headline .highlight {
            color: #1a73e8;
        }

        .typed-cursor {
            display: inline-block;
            width: 3px;
            height: 1.1em;
            background: #1a73e8;
            margin-left: 4px;
            vertical-align: text-bottom;
            animation: blink 0.7s step-end infinite;
        }
        @keyframes blink {
            0%,
            100% {
                opacity: 1;
            }
            50% {
                opacity: 0;
            }
        }

        .role-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem 0.8rem;
            margin: 0.4rem 0 0.8rem;
        }
        .role-tag {
            background: var(--bg-tag);
            padding: 0.2rem 1rem;
            border-radius: 40px;
            font-weight: 600;
            font-size: 0.7rem;
            color: #1a73e8;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            transition: var(--transition);
            cursor: default;
            font-family: 'Poppins', sans-serif;
        }
        .role-tag i {
            font-size: 0.7rem;
            color: #1a73e8;
            transition: transform 0.3s ease;
        }
        .role-tag:hover {
            transform: translateY(-2px) scale(1.04);
            box-shadow: 0 4px 15px var(--shadow-hover);
            background: var(--bg-tag-hover);
        }
        .role-tag:hover i {
            transform: rotate(10deg) scale(1.2);
        }

        .hero-desc {
            font-size: 1rem;
            color: var(--text-secondary);
            max-width: 540px;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
        }
        .btn-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }

        /* Avatar */
        .hero-avatar {
            flex: 1 0 110px;
            display: flex;
            justify-content: center;
        }
        .avatar-frame {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            background: var(--bg-section);
            border: 4px solid var(--bg-card);
            outline: none;
            overflow: hidden;
            box-shadow: 0 8px 20px var(--shadow);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        }
        .avatar-frame:hover {
            transform: scale(1.03);
            box-shadow: 0 15px 40px var(--shadow-hover);
        }
        .avatar-frame img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.5s ease;
        }
        .avatar-frame:hover img {
            transform: scale(1.08);
        }

        /* ----- About ----- */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin-top: 0.5rem;
        }
        .about-text {
            font-size: 0.95rem;
            line-height: 1.8;
            color: var(--text-secondary);
            font-family: 'Poppins', sans-serif;
        }
        .about-text p {
            margin-bottom: 0.8rem;
        }

        .about-stats {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1rem;
        }
        .stat-item {
            background: var(--bg-section);
            border: 1px solid var(--border-color);
            border-radius: 1rem;
            padding: 1.2rem;
            text-align: center;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        .stat-item::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, rgba(26, 115, 232, 0.05), rgba(124, 58, 237, 0.05));
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        .stat-item:hover::before {
            opacity: 1;
        }
        .stat-item:hover {
            transform: translateY(-4px) scale(1.02);
            box-shadow: 0 8px 25px var(--shadow-hover);
            border-color: #1a73e8;
        }
        .stat-number {
            font-size: 2rem;
            font-weight: 700;
            color: #1a73e8;
            display: block;
            font-family: 'Poppins', sans-serif;
        }
        .stat-label {
            font-size: 0.8rem;
            color: var(--text-muted);
            margin-top: 0.2rem;
            display: block;
            font-family: 'Poppins', sans-serif;
        }

        /* ----- Services ----- */
        .services-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-top: 0.5rem;
        }
        .service-card {
            background: var(--bg-section);
            border: 1px solid var(--border-color);
            border-radius: 1.2rem;
            padding: 1.8rem 1.2rem;
            text-align: center;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        .service-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, rgba(26, 115, 232, 0.05), rgba(124, 58, 237, 0.05));
            opacity: 0;
            transition: opacity 0.5s ease;
        }
        .service-card:hover::before {
            opacity: 1;
        }
        .service-card:hover {
            transform: translateY(-6px) rotateY(2deg);
            border-color: #1a73e8;
            box-shadow: 0 12px 30px var(--shadow-hover);
            background: var(--bg-card-hover);
        }
        .service-card i {
            font-size: 2.2rem;
            color: #1a73e8;
            margin-bottom: 0.8rem;
            transition: transform 0.4s ease;
        }
        .service-card:hover i {
            transform: scale(1.1) rotate(-5deg);
        }
        .service-card h3 {
            font-size: 1.05rem;
            margin-bottom: 0.4rem;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }
        .service-card p {
            color: var(--text-muted);
            font-size: 0.85rem;
            line-height: 1.6;
            font-family: 'Poppins', sans-serif;
        }

        /* ----- Skills with Icons ----- */
        .skills-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.2rem 2.5rem;
            margin-top: 0.5rem;
        }
        .skill-item {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
        }
        .skill-item .skill-label {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-weight: 500;
            font-size: 0.85rem;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
        }
        .skill-item .skill-label .skill-name {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .skill-item .skill-label .skill-name i {
            color: #1a73e8;
            font-size: 1rem;
            width: 1.2rem;
            text-align: center;
        }
        .skill-bar {
            width: 100%;
            height: 6px;
            background: var(--border-color);
            border-radius: 10px;
            overflow: hidden;
        }
        .skill-bar .fill {
            height: 100%;
            border-radius: 10px;
            background: linear-gradient(90deg, #1a73e8, #7c3aed);
            transition: width 1.2s ease;
            width: 0;
        }
        .skill-item.visible .fill {
            width: var(--percent);
        }

        /* ----- Work Process ----- */
        .process-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
            gap: 1.5rem;
            margin-top: 0.5rem;
        }
        .process-step {
            text-align: center;
            padding: 1.2rem 0.8rem;
            border-radius: 1.2rem;
            background: var(--bg-section);
            border: 1px solid var(--border-color);
            transition: all 0.4s ease;
            position: relative;
        }
        .process-step:hover {
            transform: translateY(-4px) rotateY(2deg);
            border-color: #1a73e8;
        }
        .process-step .step-number {
            width: 38px;
            height: 38px;
            background: linear-gradient(135deg, #1a73e8, #7c3aed);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 1rem;
            margin: 0 auto 0.6rem;
            transition: transform 0.4s ease;
            font-family: 'Poppins', sans-serif;
        }
        .process-step:hover .step-number {
            transform: scale(1.1) rotate(-5deg);
        }
        .process-step h4 {
            font-size: 0.9rem;
            margin-bottom: 0.2rem;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }
        .process-step p {
            font-size: 0.78rem;
            color: var(--text-muted);
            font-family: 'Poppins', sans-serif;
        }

        /* ----- Portfolio Filter ----- */
        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 0.6rem;
            margin-bottom: 1.5rem;
            justify-content: center;
        }
        .filter-btn {
            background: var(--bg-section);
            border: 1px solid var(--border-color);
            color: var(--text-muted);
            padding: 0.4rem 1.2rem;
            border-radius: 40px;
            cursor: pointer;
            font-size: 0.75rem;
            font-weight: 600;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
        }
        .filter-btn:hover {
            border-color: #1a73e8;
            color: var(--text-primary);
        }
        .filter-btn.active {
            background: #1a73e8;
            color: white;
            border-color: #1a73e8;
        }

        /* ----- Projects ----- */
        .project-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 1.5rem;
            margin-top: 0.5rem;
            margin-bottom: 0.5rem;
        }
        .project-card {
            background: var(--bg-card);
            border: 1px solid var(--border-color);
            border-radius: 1.2rem;
            padding: 1.5rem 1.2rem 1.5rem;
            transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
            cursor: default;
            position: relative;
            overflow: hidden;
        }
        .project-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, rgba(26, 115, 232, 0.03), rgba(124, 58, 237, 0.03));
            opacity: 0;
            transition: opacity 0.5s ease;
            border-radius: 1.2rem;
        }
        .project-card:hover::before {
            opacity: 1;
        }
        .project-card:hover {
            transform: translateY(-6px) rotateY(2deg) scale(1.01);
            border-color: #1a73e8;
            box-shadow: 0 16px 35px -12px var(--shadow-hover);
        }
        .project-card.hide {
            display: none;
        }

        .project-image {
            width: 100%;
            height: 240px;
            background: var(--bg-section);
            border-radius: 0.8rem;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            background-size: contain;
            background-repeat: no-repeat;
            background-position: center;
            background-color: var(--bg-section);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }
        .project-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, rgba(26, 115, 232, 0.08), rgba(124, 58, 237, 0.08));
            opacity: 0;
            transition: opacity 0.4s ease;
            border-radius: 0.8rem;
        }
        .project-card:hover .project-image::after {
            opacity: 1;
        }
        .project-image i {
            font-size: 1.8rem;
            opacity: 0.5;
            background: rgba(255, 255, 255, 0.6);
            padding: 0.4rem;
            border-radius: 40px;
            transition: all 0.4s ease;
            z-index: 1;
            color: #1a73e8;
        }
        .project-card:hover .project-image i {
            transform: scale(1.1) rotate(5deg);
            opacity: 0.8;
        }
        .project-card .project-badge {
            position: absolute;
            top: 0.8rem;
            right: 0.8rem;
            background: #1a73e8;
            color: white;
            font-size: 0.55rem;
            font-weight: 600;
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-family: 'Poppins', sans-serif;
            z-index: 2;
        }

        .project-card h3 {
            font-size: 1.05rem;
            margin-bottom: 0.2rem;
            transition: color 0.3s ease;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
            font-weight: 600;
        }
        .project-card:hover h3 {
            color: #1a73e8;
        }
        .project-desc {
            color: var(--text-light);
            font-size: 0.85rem;
            line-height: 1.5;
            margin: 0.3rem 0 0.8rem;
            transition: color 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }

        .tech-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem 0.5rem;
        }
        .tech-tags span {
            background: var(--bg-tag);
            padding: 0.15rem 0.7rem;
            border-radius: 30px;
            font-size: 0.6rem;
            font-weight: 600;
            color: #1a73e8;
            transition: all 0.3s ease;
            font-family: 'Poppins', sans-serif;
        }
        .project-card:hover .tech-tags span {
            background: var(--bg-tag-hover);
            transform: translateY(-1px);
        }

        /* ============================================ */
        /* ========== CTA SECTION ==================== */
        /* ============================================ */
        .cta-section {
            margin: 2.5rem 0 0.5rem;
            background: linear-gradient(135deg, #1a73e8, #7c3aed);
            border-radius: 1.5rem;
            padding: 2.5rem 2rem;
            text-align: center;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }
        .cta-section::before {
            content: '';
            position: absolute;
            inset: 0;
            background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
            opacity: 0.3;
        }
        .cta-section:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px rgba(26, 115, 232, 0.3);
        }
        .cta-section h2 {
            color: white;
            font-size: 1.8rem;
            font-weight: 700;
            font-family: 'Poppins', sans-serif;
            position: relative;
            z-index: 1;
        }
        .cta-section p {
            color: rgba(255, 255, 255, 0.85);
            font-size: 1rem;
            margin: 0.5rem 0 1.5rem;
            font-family: 'Poppins', sans-serif;
            position: relative;
            z-index: 1;
        }
        .cta-section .btn-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: white;
            color: #1a73e8;
            border: none;
            padding: 0.7rem 2rem;
            border-radius: 60px;
            font-weight: 700;
            font-size: 0.95rem;
            text-decoration: none;
            transition: var(--transition);
            font-family: 'Poppins', sans-serif;
            position: relative;
            z-index: 1;
        }
        .cta-section .btn-cta:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
        }

        /* ============================================ */
        /* ========== CONTACT CARD =================== */
        /* ============================================ */
        .contact-card {
            margin: 2.5rem 0 0.5rem;
            background: var(--bg-contact);
            border-radius: 1.5rem;
            padding: 1.8rem 2rem;
            border: 1px solid var(--border-color);
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
        }

        .contact-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(145deg, rgba(26, 115, 232, 0.04), rgba(124, 58, 237, 0.04));
            opacity: 0;
            transition: opacity 0.6s ease;
            border-radius: 1.5rem;
        }

        .contact-card:hover::before {
            opacity: 1;
        }

        .contact-card:hover {
            transform: translateY(-3px);
            box-shadow: 0 12px 30px var(--shadow-hover);
            border-color: #1a73e8;
        }

        .contact-card-title {
            font-weight: 600;
            font-size: 1.05rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            z-index: 1;
            color: var(--text-primary);
            font-family: 'Poppins', sans-serif;
            margin-bottom: 1.2rem;
        }

        .contact-card-title i {
            color: #1a73e8;
            font-size: 1.2rem;
        }

        .contact-icons-row {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            align-items: center;
            gap: 1.5rem 2.5rem;
            z-index: 1;
        }

        .contact-icons-row a {
            color: var(--text-secondary);
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.6rem;
            font-weight: 500;
            font-size: 0.9rem;
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            position: relative;
            font-family: 'Poppins', sans-serif;
            padding: 0.5rem 1.2rem;
            border-radius: 40px;
            background: var(--bg-card);
            border: 1px solid var(--border-color);
        }

        .contact-icons-row a::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 10%;
            width: 80%;
            height: 2px;
            background: #1a73e8;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .contact-icons-row a:hover::after {
            transform: scaleX(1);
        }

        .contact-icons-row a i {
            font-size: 1.2rem;
            color: #1a73e8;
            transition: all 0.4s ease;
        }

        .contact-icons-row a:hover {
            color: #1a73e8;
            transform: translateY(-3px);
            border-color: #1a73e8;
            box-shadow: 0 4px 15px var(--shadow-hover);
        }

        .contact-icons-row a:hover i {
            transform: scale(1.2) rotate(-5deg);
        }

        /* ============================================ */
        /* ========== FOOTER ========================= */
        /* ============================================ */
        .footer {
            margin-top: 2.5rem;
            padding-top: 1.5rem;
            border-top: 2px solid var(--border-color);
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            gap: 1rem;
            transition: var(--transition);
        }
        .footer-left {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 1rem;
        }
        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            align-items: center;
        }
        .footer-links a {
            color: var(--text-muted);
            text-decoration: none;
            font-size: 0.8rem;
            transition: var(--transition);
            font-weight: 500;
            cursor: pointer;
            font-family: 'Poppins', sans-serif;
        }
        .footer-links a:hover {
            color: #1a73e8;
        }
        .footer-divider {
            color: var(--text-muted);
            opacity: 0.3;
        }
        .footer-copy {
            color: var(--text-muted);
            font-size: 0.75rem;
            font-family: 'Poppins', sans-serif;
        }

        .project-image[style*="background-image"] {
            background-size: cover;
            background-position: center;
        }

        /* ============================================ */
        /* ========== RESPONSIVE ====================== */
        /* ============================================ */

        @media (max-width: 992px) {
            .portfolio {
                padding: 1.8rem 1.5rem 1.5rem;
            }
            .typed-headline {
                font-size: 2.2rem;
                min-height: 3.5rem;
            }
            .about-grid {
                gap: 1.5rem;
            }
            .policy-content {
                padding: 2rem;
                max-width: 95%;
            }
            .cta-section h2 {
                font-size: 1.5rem;
            }
        }

        @media (max-width: 768px) {
            body {
                padding: 0.5rem;
            }

            .top-controls {
                justify-content: center;
                gap: 0.5rem;
            }
            .top-controls-left,
            .top-controls-right {
                flex: 1 1 auto;
                justify-content: center;
            }

            .theme-toggle-top {
                font-size: 0.7rem;
                padding: 0.3rem 0.7rem;
            }
            .lang-select-top {
                font-size: 0.7rem;
                padding: 0.3rem 1.8rem 0.3rem 0.7rem;
                max-width: 200px;
            }

            .portfolio {
                padding: 1.2rem 1rem 1.2rem;
                border-radius: 1.2rem;
            }

            .typed-headline {
                font-size: 1.8rem;
                min-height: 3rem;
            }

            .hero {
                flex-direction: column-reverse;
                align-items: center;
                gap: 1rem;
            }
            .hero-content {
                text-align: center;
                flex: 1 1 auto;
            }
            .hero-desc {
                max-width: 100%;
                font-size: 0.9rem;
                margin-bottom: 1.2rem;
            }
            .btn-group {
                justify-content: center;
            }
            .btn {
                padding: 0.5rem 1.2rem;
                font-size: 0.8rem;
            }
            .hero-avatar {
                flex: 0 0 auto;
            }
            .avatar-frame {
                width: 110px;
                height: 110px;
            }

            .section-title {
                font-size: 1.2rem;
                margin: 1.8rem 0 0.8rem;
            }

            .about-grid {
                grid-template-columns: 1fr;
                gap: 1.2rem;
            }
            .about-stats {
                grid-template-columns: 1fr 1fr;
                gap: 0.8rem;
            }
            .stat-item {
                padding: 0.8rem;
            }
            .stat-number {
                font-size: 1.6rem;
            }

            .services-grid {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }
            .service-card {
                padding: 1.2rem 0.8rem;
            }
            .service-card i {
                font-size: 1.8rem;
            }
            .service-card h3 {
                font-size: 0.95rem;
            }
            .service-card p {
                font-size: 0.8rem;
            }

            .skills-grid {
                grid-template-columns: 1fr;
                gap: 0.8rem;
            }

            .process-grid {
                grid-template-columns: 1fr 1fr;
                gap: 1rem;
            }
            .process-step {
                padding: 1rem 0.5rem;
            }
            .process-step .step-number {
                width: 32px;
                height: 32px;
                font-size: 0.85rem;
            }
            .process-step h4 {
                font-size: 0.8rem;
            }
            .process-step p {
                font-size: 0.7rem;
            }

            .project-grid {
                grid-template-columns: 1fr;
                gap: 1.2rem;
            }
            .project-card {
                padding: 1.2rem 1rem;
            }
            .project-image {
                height: 100px;
            }
            .project-image i {
                font-size: 1.6rem;
            }

            .filter-buttons {
                gap: 0.4rem;
            }
            .filter-btn {
                font-size: 0.65rem;
                padding: 0.3rem 0.8rem;
            }

            .cta-section {
                padding: 1.8rem 1.2rem;
            }
            .cta-section h2 {
                font-size: 1.3rem;
            }
            .cta-section p {
                font-size: 0.9rem;
            }
            .cta-section .btn-cta {
                font-size: 0.85rem;
                padding: 0.6rem 1.5rem;
            }

            .contact-card {
                padding: 1.2rem 1rem;
                margin: 1.8rem 0 0.5rem;
            }
            .contact-card-title {
                font-size: 0.95rem;
                margin-bottom: 0.8rem;
            }
            .contact-icons-row {
                gap: 0.8rem 1.2rem;
                flex-wrap: wrap;
                justify-content: center;
            }
            .contact-icons-row a {
                font-size: 0.8rem;
                padding: 0.35rem 0.8rem;
                gap: 0.4rem;
            }
            .contact-icons-row a i {
                font-size: 1rem;
            }

            .role-tags {
                justify-content: center;
            }
            .role-tag {
                font-size: 0.65rem;
                padding: 0.15rem 0.8rem;
            }

            .footer {
                flex-direction: column;
                align-items: center;
                text-align: center;
            }
            .footer-left {
                flex-direction: column;
                align-items: center;
            }
            .footer-links {
                justify-content: center;
            }

            .policy-content {
                padding: 1.5rem;
                margin: 1rem;
                max-height: 90vh;
            }
            .policy-content h2 {
                font-size: 1.4rem;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 0.3rem;
            }

            .top-controls {
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
                gap: 0.4rem;
            }
            .top-controls-left,
            .top-controls-right {
                flex: 0 1 auto;
            }
            .theme-toggle-top {
                font-size: 0.65rem;
                padding: 0.25rem 0.6rem;
            }
            .lang-select-top {
                font-size: 0.65rem;
                padding: 0.25rem 1.6rem 0.25rem 0.6rem;
                max-width: 160px;
            }

            .portfolio {
                padding: 0.8rem 0.6rem 1rem;
                border-radius: 0.8rem;
            }

            .typed-headline {
                font-size: 1.4rem;
                min-height: 2.2rem;
            }

            .avatar-frame {
                width: 90px;
                height: 90px;
            }

            .services-grid {
                grid-template-columns: 1fr;
            }
            .process-grid {
                grid-template-columns: 1fr 1fr;
            }
            .about-stats {
                grid-template-columns: 1fr 1fr;
            }

            .btn-group {
                flex-direction: column;
                align-items: stretch;
                width: 100%;
            }
            .btn {
                justify-content: center;
                padding: 0.5rem 0.8rem;
                font-size: 0.75rem;
            }

            .filter-buttons {
                gap: 0.3rem;
            }
            .filter-btn {
                font-size: 0.55rem;
                padding: 0.2rem 0.6rem;
            }

            .cta-section {
                padding: 1.5rem 1rem;
            }
            .cta-section h2 {
                font-size: 1.1rem;
            }
            .cta-section p {
                font-size: 0.8rem;
            }
            .cta-section .btn-cta {
                font-size: 0.8rem;
                padding: 0.5rem 1.2rem;
            }

            .contact-card {
                padding: 1rem 0.8rem;
            }
            .contact-icons-row {
                gap: 0.6rem 0.8rem;
                flex-direction: row;
                flex-wrap: wrap;
                justify-content: center;
            }
            .contact-icons-row a {
                font-size: 0.7rem;
                padding: 0.25rem 0.6rem;
            }
            .contact-icons-row a i {
                font-size: 0.9rem;
            }

            .section-title {
                font-size: 1rem;
            }
            .stat-number {
                font-size: 1.3rem;
            }

            .footer-links {
                flex-direction: column;
                align-items: center;
                gap: 0.4rem;
            }
            .footer-divider {
                display: none;
            }

            .policy-content {
                padding: 1rem;
                border-radius: 0.8rem;
            }
            .policy-content h2 {
                font-size: 1.1rem;
            }
            .policy-content h3 {
                font-size: 0.95rem;
            }
            .policy-content p,
            .policy-content ul {
                font-size: 0.85rem;
            }
        }

        @media (max-width: 360px) {
            .typed-headline {
                font-size: 1.1rem;
                min-height: 1.8rem;
            }
            .avatar-frame {
                width: 70px;
                height: 70px;
            }
            .process-grid {
                grid-template-columns: 1fr;
            }
            .about-stats {
                grid-template-columns: 1fr;
            }
            .role-tag {
                font-size: 0.55rem;
                padding: 0.1rem 0.6rem;
            }
            .contact-icons-row {
                flex-direction: column;
                align-items: center;
                gap: 0.4rem;
            }
            .contact-icons-row a {
                width: 100%;
                justify-content: center;
            }
        }

        @media (min-width: 1400px) {
            .portfolio {
                padding: 3rem 3.5rem 2.5rem;
            }
            .typed-headline {
                font-size: 3.2rem;
                min-height: 5rem;
            }
            .hero-desc {
                font-size: 1.1rem;
            }
            .section-title {
                font-size: 2rem;
            }
        }
    
/* ===== Responsive containment: never shift left/right on any device ===== */
html, body { max-width: 100%; overflow-x: hidden; }
.portfolio, .hero, .about-grid, .services-grid, .skills-grid,
.process-grid, .project-grid, .cta-section, .contact-card, .footer,
.top-controls, .filter-buttons {
    max-width: 100%;
    box-sizing: border-box;
}
img, video, iframe, .project-image { max-width: 100%; }
* { -webkit-tap-highlight-color: transparent; }

/* ===== Content protection: no text selection, no image dragging ===== */
body, body * {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
input, textarea, select { -webkit-user-select: text; user-select: text; }
img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

/* ----- Always-visible content (no blank page before scripts run) ----- */
.fade-section,
.stagger-children > *,
.fade-section.visible,
.stagger-children.visible > * {
    opacity: 1 !important;
    transform: none !important;
}

/* ===== Dynamic portfolio projects ===== */
.project-media-el {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 0.8rem;
}
a.project-card {
    text-decoration: none;
    display: block;
    color: inherit;
}
.projects-empty {
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
    padding: 1.5rem 0;
}

/* ----- Portfolio on phones: bigger, readable cards ----- */
@media (max-width: 768px) {
    .project-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .project-image {
        height: 200px;
    }
    .project-card h3 {
        font-size: 1rem;
    }
    .project-desc {
        font-size: 0.85rem;
    }
}
