﻿:root {
            --background: #FAFAFA;
            --surface: #FFFFFF;
            --primary: #374151;
            --creative: #8B5CF6;
            --text-main: #111827;
            --text-muted: #6B7280;
            --border: #E5E7EB;
            --background-rgb: 250, 250, 250;
            --surface-rgb: 255, 255, 255;
            --primary-rgb: 55, 65, 81;
            --creative-rgb: 139, 92, 246;
            --border-rgb: 229, 231, 235;
        }
        
        .dark {
            --background: #111827;
            --surface: #1F2937;
            --primary: #D1D5DB;
            --creative: #38BDF8;
            --text-main: #F9FAFB;
            --text-muted: #9CA3AF;
            --border: #374151;
            --background-rgb: 17, 24, 39;
            --surface-rgb: 31, 41, 55;
            --primary-rgb: 209, 213, 219;
            --creative-rgb: 56, 189, 248;
            --border-rgb: 55, 65, 81;
        }
        
        body {
            font-feature-settings: "kern", "liga", "clig", "calt";
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            background-color: var(--background);
            color: var(--text-main);
            transition: background-color 0.3s ease, color 0.3s ease;
        }
        
        /* Professional Header */
        .header-professional {
            background: rgba(var(--surface-rgb), 0.98);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            border-bottom: 1px solid var(--border);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .header-professional.scrolled {
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        }
        
        /* Professional Navigation */
        .nav-link-professional {
            position: relative;
            color: var(--text-muted);
            font-weight: 500;
            font-size: 0.95rem;
            letter-spacing: -0.01em;
            padding: 0.5rem 0;
            transition: color 0.2s ease;
        }
        
        .nav-link-professional:hover,
        .nav-link-professional.active {
            color: var(--primary);
        }
        
        .nav-link-professional::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            bottom: 0;
            left: 0;
            background-color: var(--primary);
            transform: scaleX(0);
            transform-origin: right;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .nav-link-professional:hover::after,
        .nav-link-professional.active::after {
            transform: scaleX(1);
            transform-origin: left;
        }
        
        /* Mobile Menu */
        .mobile-menu-panel {
            background: var(--surface);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
            border-top: 1px solid var(--border);
        }
        
        /* Typography Improvements */
        .heading-1 {
            font-size: 3.5rem;
            line-height: 1.1;
            font-weight: 800;
            letter-spacing: -0.025em;
            color: var(--text-main);
        }
        
        .heading-2 {
            font-size: 2.5rem;
            line-height: 1.2;
            font-weight: 700;
            letter-spacing: -0.015em;
            color: var(--text-main);
        }
        
        .heading-3 {
            font-size: 1.875rem;
            line-height: 1.3;
            font-weight: 600;
            letter-spacing: -0.01em;
            color: var(--text-main);
        }
        
        .body-large {
            font-size: 1.125rem;
            line-height: 1.7;
            color: var(--text-muted);
        }
        
        .body-regular {
            font-size: 1rem;
            line-height: 1.7;
            color: var(--text-muted);
        }
        
        /* Content Spacing */
        .content-section {
            padding-top: 6rem;
            padding-bottom: 6rem;
        }
        
        .content-tight {
            padding-top: 4rem;
            padding-bottom: 4rem;
        }
        
        /* Card Styles */
        .card-elevated {
            background: var(--surface);
            border: 1px solid var(--border);
            border-radius: 0.75rem;
            box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        }
        
        .card-elevated:hover {
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
            transform: translateY(-2px);
        }
        
        /* Badge System */
        .badge-tech {
            background: var(--primary);
            color: var(--background);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            transition: all 0.2s ease;
        }
        
        .badge-tech:hover {
            opacity: 0.9;
            transform: scale(1.05);
        }
        
        .badge-creative {
            background: rgba(55, 65, 81, 0.1);
            color: var(--primary);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            border: 1px solid rgba(55, 65, 81, 0.2);
        }
        
        .badge-science {
            background: rgba(55, 65, 81, 0.1);
            color: var(--primary);
            font-size: 0.75rem;
            font-weight: 600;
            padding: 0.25rem 0.75rem;
            border-radius: 9999px;
            border: 1px solid rgba(55, 65, 81, 0.2);
        }
        
        /* Focus Styles */
        .focus-ring {
            outline: 2px solid transparent;
            outline-offset: 2px;
        }
        
        .focus-ring:focus {
            outline: 2px solid var(--primary);
            outline-offset: 2px;
        }
        
        /* Blog Specific */
        .blog-content {
            max-width: 65ch;
        }
        
        .blog-content h2 {
            font-size: 1.875rem;
            font-weight: 700;
            margin-top: 3rem;
            margin-bottom: 1.5rem;
            color: var(--text-main);
        }
        
        .blog-content h3 {
            font-size: 1.5rem;
            font-weight: 600;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
            color: var(--text-main);
        }
        
        .blog-content p {
            margin-bottom: 1.5rem;
            line-height: 1.8;
            color: var(--text-muted);
        }
        
        .blog-content pre {
            background: #1a202c;
            color: #e2e8f0;
            padding: 1.5rem;
            border-radius: 0.5rem;
            overflow-x: auto;
            margin: 1.5rem 0;
            font-family: 'Source Code Pro', monospace;
            font-size: 0.95rem;
        }
        
        .blog-content code {
            font-family: 'Source Code Pro', monospace;
            background: var(--background);
            padding: 0.2rem 0.4rem;
            border-radius: 0.25rem;
            font-size: 0.9em;
            color: var(--text-main);
        }
        
        /* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }
        
        ::-webkit-scrollbar-track {
            background: var(--background);
        }
        
        ::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 5px;
        }
        
        ::-webkit-scrollbar-thumb:hover {
            opacity: 0.8;
        }
        
        /* Theme Toggle */
        .theme-toggle {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--surface);
            border: 1px solid var(--border);
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .theme-toggle:hover {
            background: var(--primary);
            color: var(--surface);
            transform: scale(1.1);
        }
        
        /* Gradient text */
        .gradient-text {
            background: linear-gradient(135deg, var(--primary) 0%, #6B7280 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* Responsive Typography */
        @media (max-width: 768px) {
            .heading-1 {
                font-size: 2.5rem;
            }
            
            .heading-2 {
                font-size: 2rem;
            }
            
            .heading-3 {
                font-size: 1.5rem;
            }
            
            .body-large {
                font-size: 1rem;
            }
        }
        
        /* Animation utilities */
        .animate-float {
            animation: float 6s ease-in-out infinite;
        }
        
        .animate-float-slow {
            animation: float 8s ease-in-out infinite;
        }
        
        .animate-float-fast {
            animation: float 4s ease-in-out infinite;
        }
        
        .animate-pulse-glow {
            animation: pulse-glow 2s ease-in-out infinite;
        }
        
        /* Glass morphism */
        .glassmorphism {
            background: rgba(var(--surface-rgb), 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            border: 1px solid rgba(var(--border-rgb), 0.2);
        }
        
        /* Line clamp utilities */
        .line-clamp-2 {
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }
        
        .line-clamp-3 {
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .card-elevated p[style*="text-align: justify"] {
            word-break: normal !important;
            hyphens: none !important;
        }

        .animate-on-scroll {
            opacity: 0;
            transform: translateY(20px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .animate-on-scroll.animated {
            opacity: 1;
            transform: translateY(0);
        }

        .text-justify {
            text-align: justify;
        }

        .anim-delay-100 { animation-delay: 0.1s; }
        .anim-delay-200 { animation-delay: 0.2s; }
        .anim-delay-300 { animation-delay: 0.3s; }
        .anim-delay-400 { animation-delay: 0.4s; }
        .anim-delay-500 { animation-delay: 0.5s; }

        .bg-pattern-light {
            background-image: 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="%23000000" fill-opacity="0.1"%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');
        }

        .bg-pattern-dark {
            background-image: 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.2"%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');
        }

        .w-95p { width: 95%; }
        .w-90p { width: 90%; }
        .w-88p { width: 88%; }
        .w-85p { width: 85%; }
        .w-82p { width: 82%; }
        .w-45p { width: 45%; }

        /* Contact form animation */
        .shake {
            animation: shake 0.5s ease-in-out;
        }

        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
            20%, 40%, 60%, 80% { transform: translateX(5px); }
        }

        /* FAQ styles */
        .faq-question {
            cursor: pointer;
        }

        .faq-answer {
            transition: all 0.3s ease-in-out;
        }

        .faq-answer:not(.hidden) {
            animation: fadeInDown 0.3s ease-in-out;
        }

        .faq-question:hover svg {
            transform: scale(1.1);
        }

        @keyframes fadeInDown {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Blog content details */
        .blog-content h4 {
            font-size: 1.25rem;
            font-weight: 600;
            margin-top: 1.5rem;
            margin-bottom: 0.75rem;
            color: #2d3748;
        }

        .blog-content ul,
        .blog-content ol {
            margin-bottom: 1.5rem;
            padding-left: 2rem;
        }

        .blog-content ul li {
            list-style-type: disc;
            margin-bottom: 0.5rem;
        }

        .blog-content ol li {
            list-style-type: decimal;
            margin-bottom: 0.5rem;
        }

        .blog-content a {
            color: #5a7863;
            text-decoration: underline;
        }

        .blog-content a:hover {
            color: #3b4953;
        }

        .blog-content blockquote {
            border-left: 4px solid #5a7863;
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            color: #4a5568;
        }

        .blog-content code {
            background-color: #f7fafc;
            padding: 0.25rem 0.5rem;
            border-radius: 0.25rem;
            font-family: 'Courier New', monospace;
            font-size: 0.875em;
        }

        .blog-content pre {
            background-color: #2d3748;
            color: #f7fafc;
            padding: 1.5rem;
            border-radius: 0.5rem;
            overflow-x: auto;
            margin: 1.5rem 0;
        }

        .blog-content pre code {
            background-color: transparent;
            padding: 0;
            color: #f7fafc;
        }

        .blog-content img {
            max-width: 100%;
            height: auto;
            border-radius: 0.5rem;
            margin: 2rem 0;
        }

        .blog-content table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
        }

        .blog-content table th,
        .blog-content table td {
            border: 1px solid #e2e8f0;
            padding: 0.75rem;
            text-align: left;
        }

        .blog-content table th {
            background-color: #f7fafc;
            font-weight: 600;
        }

        /* Portfolio filters */
        .filter-btn {
            padding: 0.5rem 1rem;
            border-radius: 9999px;
            font-size: 0.875rem;
            font-weight: 500;
            transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
            background: var(--surface);
            color: var(--text-muted);
            border: 1px solid var(--border);
        }

        .filter-btn.active {
            background: var(--primary);
            color: #ffffff;
            border-color: var(--primary);
        }

        .stat-number {
            background: linear-gradient(135deg, var(--primary), var(--creative));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
