/* Saifuz Zaman Portfolio - Main Stylesheet */
:root {
            --primary: #0284c7;
            --primary-dark: #0369a1;
            --secondary: #334155;
            --light: #f8fafc;
            --dark: #0f172a;
            --text: #475569;
            --border-color: #e2e8f0;
            --border-radius: 6px;
            --shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);
            --transition: all 0.25s ease;
            --accent: #0284c7;
            --background: #ffffff;
            --card-bg: #ffffff;
            --footer-bg: #0f172a;
            --footer-text: #94a3b8;
            --mono-font: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
        }

        .dark-mode {
            --primary: #38bdf8;
            --primary-dark: #0284c7;
            --secondary: #1e293b;
            --light: #0f172a;
            --dark: #f8fafc;
            --text: #94a3b8;
            --border-color: rgba(255, 255, 255, 0.09);
            --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
            --background: #0b0f19;
            --card-bg: #111827;
            --footer-bg: #070a10;
            --footer-text: #64748b;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Smooth scrolling */
        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Poppins', sans-serif;
            background-color: var(--background);
            color: var(--text);
            line-height: 1.8;
            overflow-x: hidden;
            width: 100%;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        /* Custom selection color */
        ::selection {
            background: var(--primary);
            color: white;
        }

        /* Scrollbar styling */
        ::-webkit-scrollbar {
            width: 10px;
        }

        ::-webkit-scrollbar-track {
            background: var(--light);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 5px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--primary-dark);
        }

        /* Glowing text effect for important elements */
        .glow-text {
            text-shadow: 0 0 10px rgba(0, 115, 177, 0.5);
        }

        /* Gradient border effect */
        .gradient-border {
            position: relative;
        }

        .gradient-border::before {
            content: '';
            position: absolute;
            inset: 0;
            padding: 2px;
            background: linear-gradient(135deg, var(--primary), var(--accent));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            mask-composite: exclude;
            border-radius: inherit;
        }

        /* Floating animation */
        @keyframes float {
            0%, 100% { transform: translateY(0px); }
            50% { transform: translateY(-10px); }
        }

        .floating {
            animation: float 3s ease-in-out infinite;
        }

        /* Pulse animation */
        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        /* Shine effect */
        @keyframes shine {
            0% { left: -100%; }
            100% { left: 200%; }
        }

        .shine-effect {
            position: relative;
            overflow: hidden;
        }

        .shine-effect::after {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 50%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
            animation: shine 3s infinite;
        }

        /* Theme Toggle */
        .theme-toggle {
            background: transparent;
            border: none;
            color: var(--primary);
            font-size: 24px;
            cursor: pointer;
            margin-left: 15px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .theme-toggle:hover {
            background-color: rgba(0, 115, 177, 0.1);
            transform: rotate(15deg);
        }

        .theme-toggle i {
            transition: transform 0.5s ease, opacity 0.3s ease;
        }

        /* Header & Navigation */
        header {
            background-color: var(--card-bg);
            padding: 15px 0;
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 100;
            transition: background-color 0.3s ease;
        }

        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        .nav-container {
            display: flex;
            align-items: center;
        }

        .logo {
            font-size: 24px;
            font-weight: 700;
            color: var(--primary);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 10px;
            transition: color 0.3s ease;
        }

        .logo i {
            color: var(--accent);
            transition: color 0.3s ease;
        }

        .nav-links {
            display: flex;
            gap: 30px;
        }

        .nav-links a {
            color: var(--dark);
            text-decoration: none;
            font-weight: 500;
            transition: var(--transition);
            position: relative;
            padding: 5px 0;
        }

        .nav-links a:hover {
            color: var(--primary);
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            width: 0;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--primary);
            transition: var(--transition);
        }

        .nav-links a:hover::after {
            width: 100%;
        }

        .mobile-nav-toggle {
            display: none;
            background: transparent;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--primary);
        }

        /* Hero Section */
        .hero {
            background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('hero-bg.webp');
            background-size: cover;
            background-position: center;
            height: 500px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle, rgba(0,115,177,0.3) 0%, rgba(0,0,0,0.7) 100%);
            z-index: 0;
        }

        .hero-dolphin-canvas {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 1;
            pointer-events: none;
        }

        .hero-content {
            max-width: 800px;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
        }

        .animated-name {
            font-size: 3.5rem;
            margin-bottom: 20px;
            color: white;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
            position: relative;
            display: inline-block;
            overflow: hidden;
        }

        .animated-name::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            border-left: 3px solid var(--accent);
            background-color: rgba(0,0,0,0.7);
            left: 0;
            top: 0;
            animation: typing 3s steps(30) forwards;
        }

        @keyframes typing {
            to {
                left: 100%;
                width: 0;
            }
        }

        .animated-name span {
            display: inline-block;
            opacity: 0;
            transform: translateY(20px);
            animation: fadeInUp 0.3s forwards, colorCycle 4s infinite alternate;
            animation-delay: calc(var(--char-index) * 0.1s), calc(var(--char-index) * 0.1s + 3s);
        }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        @keyframes colorCycle {
            0% { color: white; }
            25% { color: #f8f9fa; }
            50% { color: #e6f7ff; }
            75% { color: #f8f9fa; }
            100% { color: white; }
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            color: #eee;
        }

        .cta-buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }

        .button {
            display: inline-block;
            padding: 12px 25px;
            font-size: 16px;
            color: white;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            text-decoration: none;
            border-radius: var(--border-radius);
            transition: var(--transition);
            border: none;
            cursor: pointer;
            position: relative;
            overflow: hidden;
            z-index: 1;
            font-weight: 500;
            letter-spacing: 0.5px;
        }

        .button::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, var(--primary-dark), var(--accent));
            transition: all 0.4s ease;
            z-index: -1;
        }

        .button:hover::before {
            left: 0;
        }

        .button:hover {
            transform: translateY(-3px);
            box-shadow: 0 10px 30px rgba(0, 115, 177, 0.4);
        }

        .button:active {
            transform: translateY(-1px);
        }

        .button.secondary {
            background-color: transparent;
            border: 2px solid white;
        }

        .button.secondary:hover {
            background-color: white;
            color: var(--primary);
        }

        /* Upwork Banner */
        .upwork-banner {
            background: linear-gradient(to right, #1d4354, #6fda44);
            padding: 40px 0;
            text-align: center;
            color: white;
            position: relative;
            overflow: hidden;
        }

        .upwork-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
            z-index: 1;
            animation: rotate 30s linear infinite;
        }

        @keyframes rotate {
            0% {
                transform: rotate(0deg);
            }
            100% {
                transform: rotate(360deg);
            }
        }

        .upwork-content {
            max-width: 1000px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .upwork-content h2 {
            font-size: 2.2rem;
            margin-bottom: 10px;
            color: white;
        }

        .upwork-content .ceo-title {
            font-size: 1.3rem;
            margin-bottom: 20px;
            color: rgba(255, 255, 255, 0.95);
            font-weight: 500;
        }

        .upwork-content .c4u-link {
            color: #ffd700;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s ease;
            position: relative;
        }

        .upwork-content .c4u-link:hover {
            color: #fff;
            text-shadow: 0 0 10px rgba(255, 215, 0, 0.8);
        }

        .upwork-content .c4u-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 100%;
            height: 2px;
            background: #ffd700;
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .upwork-content .c4u-link:hover::after {
            transform: scaleX(1);
        }

        .upwork-content p {
            font-size: 1.1rem;
            margin-bottom: 25px;
            color: rgba(255, 255, 255, 0.9);
        }

        .upwork-button {
            background-color: white;
            color: #1d4354;
            font-weight: 600;
            padding: 14px 30px;
            border-radius: 30px;
            display: inline-block;
            text-decoration: none;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
            z-index: 1;
        }

        .upwork-button::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 0;
            background-color: rgba(29, 67, 84, 0.1);
            transition: all 0.3s ease;
            z-index: -1;
        }

        .upwork-button:hover::after {
            height: 100%;
        }

        .upwork-button:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        }

        /* Main Content */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 60px 20px;
        }

        section {
            margin-bottom: 80px;
        }

        section h2 {
            font-size: 1.9rem;
            font-weight: 700;
            color: var(--dark);
            margin-bottom: 35px;
            text-align: center;
            letter-spacing: -0.02em;
            position: relative;
            transition: color 0.3s ease;
        }

        section h2::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 50%;
            transform: translateX(-50%);
            width: 40px;
            height: 2px;
            background-color: var(--primary);
            border-radius: 2px;
            transition: background-color 0.3s ease;
        }

        /* About Section */
        .about-grid {
            display: grid;
            grid-template-columns: 1fr 2fr;
            gap: 40px;
            align-items: center;
        }

        .profile-image {
            width: 100%;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .profile-image:hover {
            transform: translateY(-2px);
        }

        .about-content h3 {
            color: var(--dark);
            margin-bottom: 12px;
            font-size: 1.6rem;
            font-weight: 700;
            letter-spacing: -0.02em;
            transition: color 0.3s ease;
        }

        .about-content p {
            margin-bottom: 15px;
            color: var(--text);
            line-height: 1.7;
        }

        /* Skills Section - Developer Stack */
        .skills-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
            gap: 20px;
        }

        .skill-card {
            background-color: var(--card-bg);
            padding: 24px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .skill-card:hover {
            transform: translateY(-3px);
            border-color: var(--primary);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }

        .dark-mode .skill-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        }

        .skill-card i {
            font-size: 26px;
            color: var(--primary);
            margin-bottom: 14px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 44px;
            height: 44px;
            background: rgba(2, 132, 199, 0.08);
            border: 1px solid rgba(2, 132, 199, 0.2);
            border-radius: 6px;
            transition: all 0.25s ease;
        }

        .dark-mode .skill-card i {
            background: rgba(56, 189, 248, 0.1);
            border-color: rgba(56, 189, 248, 0.25);
        }

        .skill-card:hover i {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
        }

        .skill-card h3 {
            font-size: 1.5rem;
            margin-bottom: 15px;
            color: var(--dark);
            position: relative;
            z-index: 1;
            transition: color 0.3s ease;
        }

        .skill-card:hover h3 {
            color: var(--primary);
        }

        .skill-card p {
            position: relative;
            z-index: 1;
        }

        /* Experience Section - Developer Style */
        .experience-header-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 16px;
            margin-bottom: 28px;
            max-width: 1240px;
            margin-left: auto;
            margin-right: auto;
            padding: 0 10px;
        }

        .experience-header-container h2 {
            margin: 0;
            text-align: left;
            font-size: 1.85rem;
            font-weight: 700;
            color: var(--dark);
            letter-spacing: -0.02em;
        }

        .experience-header-container h2::after {
            display: none;
        }

        .experience-controls {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .exp-nav-btn {
            background: var(--card-bg);
            border: 1px solid var(--border-color);
            color: var(--text);
            width: 34px;
            height: 34px;
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: var(--shadow);
            transition: var(--transition);
            font-size: 13px;
        }

        .exp-nav-btn:hover {
            background: var(--light);
            border-color: var(--primary);
            color: var(--primary);
            transform: translateY(-1px);
        }

        .experience-view-toggle {
            display: flex;
            background: var(--light);
            padding: 3px;
            border-radius: 6px;
            border: 1px solid var(--border-color);
            gap: 3px;
        }

        .exp-view-btn {
            border: none;
            background: transparent;
            padding: 5px 12px;
            font-size: 12px;
            font-family: var(--mono-font);
            font-weight: 600;
            color: var(--text);
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 6px;
            transition: var(--transition);
        }

        .exp-view-btn.active {
            background: var(--card-bg);
            color: var(--dark);
            border: 1px solid var(--border-color);
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        }

        .timeline-wrapper {
            position: relative;
            max-width: 1240px;
            margin: 0 auto;
        }

        /* Mode 1: Horizontal Developer Timeline Track */
        .timeline.horizontal-timeline {
            display: flex;
            flex-direction: row;
            gap: 20px;
            max-width: 1240px;
            margin: 0 auto;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            padding: 48px 10px 24px 10px;
            position: relative;
            scrollbar-width: thin;
            scrollbar-color: var(--border-color) transparent;
            -webkit-overflow-scrolling: touch;
        }

        .timeline.horizontal-timeline::after {
            content: '';
            position: absolute;
            top: 22px;
            left: 28px;
            right: 28px;
            height: 2px;
            width: auto;
            background: var(--border-color);
            border-radius: 2px;
            z-index: 0;
            transform: none;
        }

        .timeline.horizontal-timeline .timeline-item {
            flex: 0 0 360px;
            min-width: 320px;
            max-width: 400px;
            width: auto;
            padding: 0;
            left: auto !important;
            right: auto !important;
            position: relative;
            scroll-snap-align: start;
        }

        /* Git commit-style technical node */
        .timeline.horizontal-timeline .timeline-item::after {
            content: '';
            position: absolute;
            top: -32px;
            left: 28px !important;
            right: auto !important;
            width: 12px;
            height: 12px;
            background-color: var(--card-bg);
            border: 2px solid #64748b;
            border-radius: 50%;
            z-index: 2;
            transition: var(--transition);
        }

        /* Active Current Role Node (Commit Head) */
        .timeline.horizontal-timeline .timeline-item:first-child::after {
            border-color: #10b981;
            background-color: #10b981;
            box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
        }

        .timeline.horizontal-timeline .timeline-item:hover::after {
            border-color: var(--primary);
            background-color: var(--primary);
            transform: scale(1.2);
            box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.2);
        }

        .timeline.horizontal-timeline .timeline-content,
        .timeline.landscape-grid .timeline-content {
            height: 100%;
            display: flex;
            flex-direction: column;
            background-color: var(--card-bg);
            padding: 22px 20px;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow);
            transition: var(--transition);
        }

        .timeline.horizontal-timeline .timeline-content:hover,
        .timeline.landscape-grid .timeline-content:hover {
            border-color: var(--primary);
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
        }

        .dark-mode .timeline.horizontal-timeline .timeline-content:hover,
        .dark-mode .timeline.landscape-grid .timeline-content:hover {
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
        }

        .timeline-card-next {
            display: none;
        }

        @media screen and (max-width: 768px) {
            .timeline.horizontal-timeline .timeline-item {
                flex: 0 0 85%;
                min-width: 270px;
                max-width: 330px;
            }

            .timeline.horizontal-timeline .timeline-content {
                position: relative;
                padding-bottom: 52px;
            }

            .timeline.horizontal-timeline .timeline-card-next {
                display: inline-flex;
                align-items: center;
                justify-content: center;
                position: absolute;
                bottom: 14px;
                right: 14px;
                width: 36px;
                height: 36px;
                border-radius: 50%;
                background: var(--primary);
                color: #ffffff;
                border: none;
                box-shadow: 0 3px 10px rgba(2, 132, 199, 0.4);
                cursor: pointer;
                font-size: 14px;
                transition: transform 0.2s ease, background-color 0.2s ease;
                z-index: 5;
            }

            .timeline.horizontal-timeline .timeline-card-next:hover,
            .timeline.horizontal-timeline .timeline-card-next:active {
                transform: scale(1.1) translateX(2px);
                background: #0284c7;
            }

            .dark-mode .timeline.horizontal-timeline .timeline-card-next {
                background: #0284c7;
                color: #ffffff;
                box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
            }

            .timeline.horizontal-timeline .timeline-item:last-child .timeline-card-next {
                display: none;
            }
        }

        /* Mode 2: Wide Landscape Cards (Desktop 2-column) */
        .timeline.landscape-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
            max-width: 1240px;
            margin: 0 auto;
            padding: 16px 10px;
            position: relative;
        }

        @media (max-width: 850px) {
            .timeline.landscape-grid {
                grid-template-columns: 1fr;
            }
        }

        .timeline.landscape-grid::after,
        .timeline.landscape-grid .timeline-item::after {
            display: none !important;
        }

        .timeline.landscape-grid .timeline-item {
            width: 100%;
            padding: 0;
            left: 0 !important;
            right: auto !important;
        }

        /* Legacy fallback container if classes absent */
        .timeline:not(.horizontal-timeline):not(.landscape-grid) {
            position: relative;
            max-width: 800px;
            margin: 0 auto;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid)::after {
            content: '';
            position: absolute;
            width: 2px;
            background-color: var(--border-color);
            top: 0;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            transition: background-color 0.3s ease;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item {
            padding: 20px 40px;
            position: relative;
            width: 50%;
            box-sizing: border-box;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item:nth-child(odd) {
            left: 0;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item:nth-child(even) {
            left: 50%;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item::after {
            content: '';
            position: absolute;
            width: 12px;
            height: 12px;
            background-color: var(--card-bg);
            border: 2px solid var(--primary);
            border-radius: 50%;
            top: 24px;
            z-index: 1;
            transition: all 0.3s ease;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item:nth-child(odd)::after {
            right: -6px;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item:nth-child(even)::after {
            left: -6px;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-content {
            background-color: var(--card-bg);
            padding: 20px;
            border-radius: var(--border-radius);
            border: 1px solid var(--border-color);
            box-shadow: var(--shadow);
            transition: var(--transition);
            position: relative;
        }

        .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-content:hover {
            transform: translateY(-2px);
            border-color: var(--primary);
        }

        .timeline-content h3 {
            font-size: 1.15rem;
            font-weight: 600;
            color: var(--dark);
            margin-bottom: 8px;
            line-height: 1.4;
        }

        .timeline-content h3 a {
            color: var(--primary);
            text-decoration: none;
            font-family: var(--mono-font);
            font-size: 0.95em;
        }

        .timeline-content h3 a:hover {
            text-decoration: underline;
        }

        .timeline-content p {
            font-size: 0.92rem;
            color: var(--text);
            margin-bottom: 12px;
            line-height: 1.55;
        }

        .timeline-content p a {
            color: var(--primary);
            font-weight: 500;
            text-decoration: none;
        }

        .timeline-content p a:hover {
            text-decoration: underline;
        }

        /* Monospace Developer Badges */
        .role-badge {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 2px 8px;
            border-radius: 4px;
            font-size: 11px;
            font-family: var(--mono-font);
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 8px;
            margin-right: 6px;
        }

        .role-badge.full-time {
            background: rgba(16, 185, 129, 0.08);
            color: #047857;
            border: 1px solid rgba(16, 185, 129, 0.3);
        }

        .dark-mode .role-badge.full-time {
            background: rgba(16, 185, 129, 0.12);
            color: #34d399;
            border-color: rgba(52, 211, 153, 0.35);
        }

        .role-badge.part-time {
            background: rgba(2, 132, 199, 0.08);
            color: #0369a1;
            border: 1px solid rgba(2, 132, 199, 0.25);
        }

        .dark-mode .role-badge.part-time {
            background: rgba(56, 189, 248, 0.12);
            color: #38bdf8;
            border-color: rgba(56, 189, 248, 0.3);
        }

        .role-badge.training {
            background: rgba(100, 116, 139, 0.08);
            color: #475569;
            border: 1px solid rgba(100, 116, 139, 0.25);
        }

        .dark-mode .role-badge.training {
            background: rgba(148, 163, 184, 0.12);
            color: #cbd5e1;
            border-color: rgba(148, 163, 184, 0.3);
        }

        /* Monospace Timestamp Chip */
        .timeline-content .date {
            color: var(--text);
            font-family: var(--mono-font);
            font-size: 11.5px;
            font-weight: 500;
            margin-bottom: 12px;
            display: inline-block;
            padding: 2px 8px;
            background: var(--light);
            border: 1px solid var(--border-color);
            border-radius: 4px;
            letter-spacing: 0.02em;
        }

        /* Technical Bullet Points */
        .timeline-content ul {
            margin-top: 10px;
            padding-left: 0;
            list-style: none;
        }

        .timeline-content ul li {
            position: relative;
            padding-left: 16px;
            margin-bottom: 7px;
            font-size: 0.9rem;
            color: var(--text);
            line-height: 1.55;
        }

        .timeline-content ul li::before {
            content: "›";
            position: absolute;
            left: 0;
            top: -1px;
            color: var(--primary);
            font-family: var(--mono-font);
            font-weight: 700;
            font-size: 1.05rem;
        }

        /* Project Stats Container - Developer Metrics */
        .project-stats-container {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 20px;
            padding: 30px 20px;
            max-width: 1240px;
            margin: 0 auto;
        }

        @media (max-width: 992px) {
            .project-stats-container {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 580px) {
            .project-stats-container {
                grid-template-columns: 1fr;
            }
        }

        .stat-card {
            background: var(--card-bg);
            border-radius: var(--border-radius);
            padding: 26px 20px;
            width: 100%;
            color: var(--dark);
            text-align: center;
            box-shadow: var(--shadow);
            transition: var(--transition);
            border: 1px solid var(--border-color);
            position: relative;
            overflow: hidden;
        }

        .stat-card:hover {
            transform: translateY(-3px);
            border-color: var(--primary);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
        }

        .dark-mode .stat-card:hover {
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
        }

        .stat-card.mobile,
        .stat-card.web,
        .stat-card.saas,
        .stat-card.ai {
            background: var(--card-bg);
            border-left: 1px solid var(--border-color);
        }

        .icon {
            margin-bottom: 14px;
            color: var(--primary);
            height: 48px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .icon svg {
            width: 38px;
            height: 38px;
            stroke: var(--primary);
        }

        .count-wrapper {
            font-size: 42px;
            font-weight: 700;
            font-family: var(--mono-font);
            margin: 10px 0 6px 0;
            display: flex;
            justify-content: center;
            align-items: baseline;
            color: var(--dark);
            letter-spacing: -0.03em;
        }

        .count {
            display: inline-block;
            position: relative;
        }

        .plus {
            font-size: 24px;
            margin-left: 4px;
            font-weight: 600;
            color: var(--primary);
        }

        .label {
            font-size: 13px;
            font-family: var(--mono-font);
            font-weight: 500;
            letter-spacing: 0.03em;
            margin-top: 8px;
            color: var(--text);
            text-transform: uppercase;
        }

        /* Clients and Projects Section */
        #clients-projects {
            background-color: var(--light);
            padding: 60px 20px;
            margin-bottom: 0;
            overflow: hidden;
        }

        #clients-projects h2 {
            font-size: 2rem;
            font-weight: bold;
            color: var(--dark);
            margin-bottom: 20px;
            text-align: center;
        }

        .clients-subtitle {
            text-align: center;
            font-size: 1.2rem;
            color: var(--text);
            margin-bottom: 40px;
            font-weight: 500;
        }

        .clients-scroll-container {
            position: relative;
            width: 100%;
            overflow: hidden;
            padding: 20px 0;
        }

        .clients-scroll-wrapper {
            display: flex;
            animation: scroll 45s linear infinite;
            width: fit-content;
        }

        .clients-scroll-wrapper:hover {
            animation-play-state: paused;
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(-50%);
            }
        }

        .client-logo {
            flex-shrink: 0;
            width: 200px;
            height: 120px;
            margin: 0 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            filter: grayscale(100%) brightness(0.8) contrast(1.2);
            transition: all 0.4s ease;
            cursor: pointer;
            padding: 15px;
        }

        .client-logo:hover {
            filter: grayscale(0%) brightness(1) contrast(1);
            transform: scale(1.15);
        }

        .client-logo img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        /* Projects Section */
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .project-card {
            background-color: var(--card-bg);
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .project-card:hover {
            transform: translateY(-15px) scale(1.02);
            box-shadow: 0 25px 50px rgba(0, 115, 177, 0.2);
        }

        .project-img {
            height: 200px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 3rem;
            transition: all 0.5s ease;
            position: relative;
            overflow: hidden;
        }

        .project-img::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
            transform: rotate(45deg);
            transition: all 0.5s ease;
        }

        .project-card:hover .project-img {
            background: linear-gradient(135deg, var(--accent), var(--primary));
        }

        .project-card:hover .project-img::before {
            transform: rotate(90deg);
        }

        .project-img i {
            z-index: 1;
            transition: all 0.3s ease;
        }

        .project-card:hover .project-img i {
            transform: scale(1.2);
        }

        .project-content {
            padding: 20px;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
        }

        .project-content h3 {
            color: var(--dark);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .project-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin: 15px 0;
        }

        .tag {
            background-color: #e0f7fa;
            color: var(--primary);
            padding: 5px 10px;
            border-radius: 20px;
            font-size: 12px;
            transition: all 0.3s ease;
        }

        .tag:hover {
            background-color: var(--primary);
            color: white;
            transform: translateY(-2px);
        }

        .project-content .button {
            margin-top: auto;
            align-self: flex-start;
        }

        /* Certifications Section */
        .certifications-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 30px;
        }

        .certification-card {
            background-color: var(--card-bg);
            padding: 30px;
            border-radius: var(--border-radius);
            box-shadow: var(--shadow);
            transition: var(--transition);
            display: flex;
            flex-direction: column;
            justify-content: space-between;
            height: 100%;
            border-left: 4px solid var(--primary);
        }

        .certification-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        }

        .certification-card h3 {
            color: var(--dark);
            margin-bottom: 10px;
            font-size: 1.3rem;
        }

        .certification-card p {
            margin-bottom: 20px;
        }

        .certification-provider {
            color: var(--primary);
            font-weight: 500;
            display: inline-block;
            padding: 5px 10px;
            background-color: rgba(0, 115, 177, 0.1);
            border-radius: 5px;
            margin-bottom: 20px;
        }

        /* Client Feedback Section */
        #client-feedback {
            padding: 50px 20px;
            background-color: var(--light);
            margin-bottom: 0;
        }

        #client-feedback h2 {
            font-size: 2rem;
            font-weight: bold;
            color: var(--dark);
            margin-bottom: 30px;
        }

        .feedback-container {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 20px;
            flex-wrap: wrap;
            max-width: 1200px;
            margin: 0 auto;
        }

        .feedback-card {
            background: var(--card-bg);
            padding: 15px;
            border-radius: 12px;
            box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
            width: 300px;
            max-width: 100%;
            text-align: center;
            transition: all 0.3s ease;
            transform-origin: center;
        }

        .feedback-card:hover {
            transform: scale(1.03);
            box-shadow: 0px 8px 25px rgba(0, 0, 0, 0.15);
        }

        .feedback-card img {
            width: 100%;
            border-radius: 8px;
            transition: all 0.3s ease;
        }

        .feedback-card:hover img {
            filter: brightness(1.05);
        }

        /* Contact Section */
        #contact {
            padding: 50px 20px;
            margin: 0;
            background-color: var(--light);
        }

        #contact h2 {
            font-size: 2rem;
            font-weight: bold;
            color: var(--dark);
            margin-bottom: 20px;
            position: relative;
        }

        #contact h2::after {
            content: "";
            display: block;
            width: 50px;
            height: 4px;
            background-color: var(--primary);
            margin: 10px auto 0;
            border-radius: 2px;
        }

        .contact-container {
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100%;
            max-width: 1200px;
            margin: 0 auto;
        }

        .contact-card {
            background: var(--card-bg);
            padding: 30px;
            border-radius: 12px;
            box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
            max-width: 500px;
            width: 100%;
            text-align: center;
            position: relative;
            overflow: hidden;
            animation: cardPulse 3s infinite alternate;
            z-index: 1;
        }

        @keyframes cardPulse {
            0% {
                box-shadow: 0px 5px 20px rgba(0, 0, 0, 0.1);
            }
            100% {
                box-shadow: 0px 8px 30px rgba(0, 115, 177, 0.2);
            }
        }

        .contact-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--primary), var(--accent));
            z-index: 2;
        }

        .contact-card h3 {
            font-size: 1.4rem;
            font-weight: bold;
            color: var(--primary);
            margin-bottom: 20px;
            position: relative;
            display: inline-block;
        }

        .contact-card h3::after {
            content: '';
            position: absolute;
            bottom: -8px;
            left: 0;
            width: 100%;
            height: 2px;
            background-color: var(--primary);
        }

        .contact-detail {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            font-size: 1.1rem;
            margin: 15px 0;
            color: var(--dark);
        }

        .contact-detail i {
            font-size: 1.4rem;
            color: var(--primary);
            width: 40px;
            height: 40px;
            background-color: rgba(0, 115, 177, 0.1);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
        }

        .contact-detail:hover i {
            background-color: var(--primary);
            color: white;
            transform: rotate(360deg);
        }

        .contact-detail a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .contact-detail a:hover {
            color: var(--primary-dark);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 25px;
        }

        .social-icon {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
            border-radius: 50%;
            text-decoration: none;
            font-size: 22px;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            z-index: 1;
            box-shadow: 0 4px 15px rgba(0, 115, 177, 0.3);
        }

        .social-icon::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 0;
            background: linear-gradient(135deg, var(--accent), #ff5722);
            transition: all 0.3s ease;
            z-index: -1;
        }

        .social-icon:hover::before {
            height: 100%;
        }

        .social-icon:hover {
            transform: translateY(-8px) rotate(360deg) scale(1.1);
            box-shadow: 0 15px 35px rgba(255, 152, 0, 0.4);
        }

        /* C4U Tech Social Icon */
        .social-icon.c4u-social {
            background: linear-gradient(135deg, #1a1a2e, #16213e);
            padding: 8px;
        }

        .c4u-social-logo {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 50%;
        }

        .social-icon.c4u-social:hover {
            transform: translateY(-8px) scale(1.15);
        }

        /* External links in content */
        .external-link {
            color: var(--primary);
            text-decoration: none;
            position: relative;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .external-link::after {
            content: '';
            position: absolute;
            bottom: -2px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--accent);
            transition: width 0.3s ease;
        }

        .external-link:hover {
            color: var(--accent);
        }

        .external-link:hover::after {
            width: 100%;
        }

        /* Footer */
        footer {
            background-color: var(--secondary);
            color: white;
            text-align: center;
            padding: 30px 0;
            position: relative;
        }

        .footer-content {
            max-width: 600px;
            margin: 0 auto;
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .footer-logo-link {
            display: inline-block;
            margin-bottom: 15px;
            transition: transform 0.3s ease;
        }

        .footer-logo-link:hover {
            transform: scale(1.1);
        }

        .footer-c4u-logo {
            width: 60px;
            height: auto;
            border-radius: 8px;
            filter: brightness(1.1);
            transition: all 0.3s ease;
        }

        .footer-c4u-logo:hover {
            filter: brightness(1.3) drop-shadow(0 0 10px rgba(255,255,255,0.3));
        }

        .footer-content p {
            color: var(--footer-text);
            margin: 0;
        }

        footer::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 5px;
            background: linear-gradient(to right, var(--primary), var(--accent));
        }

        /* Back to Top Button */
        .back-to-top {
            position: fixed;
            bottom: 20px;
            right: 20px;
            width: 45px;
            height: 45px;
            background-color: var(--primary);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 20px;
            transition: all 0.3s ease;
            opacity: 0;
            visibility: hidden;
            z-index: 99;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background-color: var(--primary-dark);
            transform: translateY(-5px);
        }

        /* Dark Mode Toggle Button */
        .dark-mode-toggle {
            position: relative;
            width: 40px;
            height: 40px;
            margin-left: 15px;
            border: none;
            border-radius: 50%;
            background-color: transparent;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            transition: all 0.3s ease;
        }

        .dark-mode-toggle:hover {
            background-color: rgba(0, 0, 0, 0.1);
        }

        .sun-icon, .moon-icon {
            position: absolute;
            transition: transform 0.5s ease;
        }

        .sun-icon {
            color: #ff9800;
            transform: translateY(0);
        }

        .moon-icon {
            color: #0073b1;
            transform: translateY(40px);
        }

        body.dark-mode .dark-mode-toggle .sun-icon {
            transform: translateY(40px);
        }

        body.dark-mode .dark-mode-toggle .moon-icon {
            transform: translateY(0);
        }

        /* Responsive Design */
        @media screen and (max-width: 992px) {
            .about-grid {
                grid-template-columns: 1fr;
            }

            .profile-image-container {
                text-align: center;
                margin-bottom: 24px;
            }

            .profile-image {
                max-width: 220px;
                margin: 0 auto;
            }

            .timeline:not(.horizontal-timeline):not(.landscape-grid)::after {
                left: 31px;
            }

            .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item {
                width: 100%;
                padding-left: 70px;
                padding-right: 25px;
                left: 0 !important;
            }

            .timeline:not(.horizontal-timeline):not(.landscape-grid) .timeline-item::after {
                left: 20px !important;
                right: auto !important;
            }
        }

        @media screen and (max-width: 768px) {
            .profile-image-container {
                text-align: center;
                margin-bottom: 18px;
            }

            .profile-image {
                max-width: 170px;
                width: 170px;
                height: 170px;
                object-fit: cover;
                border-radius: 20px;
                margin: 0 auto;
                display: block;
            }

            .hero h1, .animated-name {
                font-size: 2.5rem;
            }

            .hero p {
                font-size: 1rem;
            }

            .nav-links {
                display: none;
                flex-direction: column;
                position: absolute;
                top: 80px;
                left: 0;
                right: 0;
                background-color: var(--card-bg);
                padding: 20px;
                box-shadow: var(--shadow);
                z-index: 100;
            }

            .nav-links.active {
                display: flex;
            }

            .mobile-nav-toggle {
                display: block;
            }

            .feedback-container {
                flex-direction: column;
                align-items: center;
            }

            .feedback-card {
                width: 90%;
                max-width: 400px;
            }

            .contact-card {
                width: 90%;
            }

            .project-stats-container {
                gap: 25px;
            }

            .stat-card {
                width: 100%;
                max-width: 280px;
                padding: 28px 20px;
            }

            .count-wrapper {
                font-size: 48px;
            }

            .client-logo {
                width: 150px;
                height: 90px;
                margin: 0 20px;
            }
        }

        @media screen and (max-width: 576px) {
            .profile-image {
                max-width: 145px;
                width: 145px;
                height: 145px;
                border-radius: 16px;
            }

            .cta-buttons {
                flex-direction: column;
                gap: 15px;
            }

            .cta-buttons .button {
                width: 100%;
            }

            .upwork-content h2 {
                font-size: 1.8rem;
            }

            section h2 {
                font-size: 1.8rem;
            }

            .contact-detail {
                flex-direction: column;
                text-align: center;
            }

            .client-logo {
                width: 120px;
                height: 70px;
                margin: 0 15px;
            }
        }