@font-face {
            font-family: 'Electromagnetic';
            src: url('../assets/fonts/Electromagnetic-Lungs.otf') format('opentype');
        }
        
        :root {
            --container: 1160px;
            --line: #1a1a1a;
            --line-strong: #2d2d2d;
            --text-muted: #888;
            --text-soft: #666;
        }

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

        /* Firefox viewport scrollbar */
        html,
        body {
            scrollbar-width: thin;
            scrollbar-color: #4a4a4a #0a0a0a;
        }

        /* Chromium/WebKit viewport scrollbar */
        html::-webkit-scrollbar,
        body::-webkit-scrollbar {
            width: 10px;
            height: 10px;
        }

        html::-webkit-scrollbar-track,
        body::-webkit-scrollbar-track {
            background: #0a0a0a;
        }

        html::-webkit-scrollbar-thumb,
        body::-webkit-scrollbar-thumb {
            background: #4a4a4a;
            border-radius: 999px;
            border: 2px solid #0a0a0a;
        }

        html::-webkit-scrollbar-thumb:hover,
        body::-webkit-scrollbar-thumb:hover {
            background: #666;
        }

        html::-webkit-scrollbar-corner,
        body::-webkit-scrollbar-corner {
            background: #0a0a0a;
        }

        /* Text selection */
        ::selection {
            background: rgba(255, 255, 255, 0.22);
            color: #fff;
        }

        ::-moz-selection {
            background: rgba(255, 255, 255, 0.22);
            color: #fff;
        }
        
        body {
            background: #000;
            color: #fff;
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            line-height: 1.6;
            min-height: 100vh;
            position: relative;
        }

        html {
            scroll-behavior: smooth;
        }
        
        /* Header */
        header {
            padding: 2.5rem 2rem 2rem;
            max-width: var(--container);
            margin: 0 auto;
            position: relative;
        }

        a{
            color: #b8b6b6;
            transition: color 0.2s ease;
        }
        
        a:hover{
            color: white;
        }

        b{
            color: #b8b6b6;
            font-weight: 600;
        }

        .logo-section {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            padding: 0.5rem 0.9rem 0.5rem 0.5rem;
            border: 1px solid var(--line);
            border-radius: 10px;
            margin-bottom: 3rem;
            transition: border-color 0.3s;
        }

        .logo-section a {
            display: inline-flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }
        
        .logo-section:hover {
            border-color: var(--line-strong);
        }
        
        .logo {
            width: 32px;
            height: 32px;
        }
        
        .brand {
            font-family: 'Electromagnetic', sans-serif;
            font-size: 1.1rem;
            color: #fff;
        }
        
        .hero {
            max-width: 760px;
            position: relative;
        }

        .hero-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.5rem 1rem;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid #1a1a1a;
            border-radius: 100px;
            margin-bottom: 2rem;
            font-size: 0.875rem;
            color: #888;
            transition: all 0.3s;
        }

        .hero-badge:hover {
            border-color: #333;
            background: rgba(255, 255, 255, 0.05);
        }

        .hero-badge .pulse {
            width: 8px;
            height: 8px;
            background: #4ade80;
            border-radius: 50%;
            animation: pulse 2s ease-in-out infinite;
        }

        @keyframes pulse {
            0%, 100% {
                opacity: 1;
                transform: scale(1);
            }
            50% {
                opacity: 0.5;
                transform: scale(0.9);
            }
        }
        
        .hero h1 {
            font-size: clamp(2.4rem, 6vw, 3.9rem);
            font-weight: 500;
            line-height: 1.08;
            margin-bottom: 1.25rem;
            letter-spacing: -0.03em;
            text-wrap: balance;
        }
        
        .hero h1 .gradient-text {
            color: #fff;
        }
        
        .hero p {
            font-size: 1.05rem;
            color: var(--text-muted);
            max-width: 650px;
            line-height: 1.7;
        }

        /* Projects Section */
        main {
            max-width: var(--container);
            margin: 0 auto;
            padding: 2rem 2rem 4.25rem;
            position: relative;
        }

        main::before {
            content: "";
            position: absolute;
            top: 0;
            left: 2rem;
            right: 2rem;
            height: 1px;
            background: #1a1a1a;
        }
        
        .section-label {
            display: inline-flex;
            align-items: baseline;
            gap: 0.5rem;
            margin-bottom: 1.05rem;
            font-size: clamp(1.12rem, 2.2vw, 0.35rem);
            font-weight: 500;
            letter-spacing: -0.02em;
            color: #f2f2f2;
            line-height: 1.2;
            text-transform: uppercase;
        }

        .section-label-count {
            color: #7a7a7a;
            font-size: 1em;
            font-weight: 500;
            letter-spacing: 0;
        }
        
        .projects-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
            gap: 1.35rem;
        }

        .projects-pagination {
            margin: 2.2rem auto 0;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.7rem;
            padding: 0.5rem 0.65rem;
            border: 1px solid #1a1a1a;
            border-radius: 15px;
            background: rgba(255, 255, 255, 0.02);
            width: fit-content;
            overflow: visible;
        }

        .pagination-btn {
            display: grid;
            place-items: center;
            width: 36px;
            height: 36px;
            min-width: 36px;
            min-height: 36px;
            aspect-ratio: 1 / 1;
            padding: 0;
            line-height: 0;
            border-radius: 50%;
            border: 1px solid #1a1a1a;
            background: transparent;
            color: #fff;
            font: inherit;
            cursor: pointer;
            transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
        }

        .pagination-btn i {
            font-size: 1.05rem;
            line-height: 1;
            display: block;
            transform: none;
            position: relative;
            top: 0.5px;
        }

        .pagination-btn:hover:not(:disabled) {
            border-color: #333;
            background: rgba(255, 255, 255, 0.03);
            color: #fff;
        }

        .pagination-btn:active:not(:disabled) {
            transform: none;
        }

        .pagination-btn:focus-visible {
            outline: none;
            border-color: #666;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
        }

        .pagination-btn:disabled {
            cursor: not-allowed;
            opacity: 0.35;
        }

        .pagination-status {
            font-size: 0.88rem;
            color: #888;
            letter-spacing: 0.03em;
            min-width: 3.1rem;
            text-align: center;
        }
        
        .project-card {
            background: #000;
            border: 1px solid var(--line);
            border-radius: 12px;
            overflow: hidden;
            transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.22s ease;
            cursor: pointer;
            text-decoration: none;
            color: inherit;
            display: block;
        }
        
        .project-card:hover {
            border-color: #3a3a3a;
            background: #040404;
            box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
        }

        .project-card:focus-visible {
            outline: none;
            border-color: #4a4a4a;
            box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
        }
        
        .project-thumbnail-wrapper {
            width: 100%;
            aspect-ratio: 16/9;
            overflow: hidden;
            background: #0a0a0a;
            position: relative;
        }
        
        .project-thumbnail-wrapper::after {
            content: '';
            position: absolute;
            inset: 0;
            border: 1px solid rgba(255, 255, 255, 0.05);
            border-radius: 0;
            pointer-events: none;
        }
        
        .project-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: filter 0.24s ease, opacity 0.24s ease;
        }
        
        .project-card:hover .project-thumbnail {
            filter: saturate(1.03) brightness(1.06);
            opacity: 0.98;
        }
        
        .project-info {
            padding: 1.2rem 1.2rem 1.25rem;
        }
        
        .project-title {
            font-size: 1.08rem;
            font-weight: 450;
            margin-bottom: 0.42rem;
            letter-spacing: -0.01em;
            line-height: 1.33;
            transition: color 0.22s ease;
            text-wrap: balance;
        }
        
        .project-description {
            color: #838383;
            font-size: 0.9rem;
            line-height: 1.48;
            transition: color 0.22s ease;
            display: -webkit-box;
            line-clamp: 2;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-wrap: pretty;
        }

        .project-card:hover .project-title {
            color: #fff;
        }

        .project-card:hover .project-description {
            color: #959595;
        }

        .project-card:active {
            border-color: #303030;
            background: #030303;
        }
        
        /* Project Page */
        .project-page {
            max-width: 900px;
            margin: 0 auto;
            padding: 2.5rem 2rem 6rem;
        }
        
        .back-button {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            color: var(--text-soft);
            text-decoration: none;
            margin-bottom: 2.25rem;
            font-size: 0.95rem;
            transition: color 0.2s;
            padding: 0.5rem 1rem 0.5rem 0.75rem;
            border: 1px solid var(--line);
            border-radius: 10px;
        }
        
        .back-button:hover {
            color: #fff;
            border-color: var(--line-strong);
        }
        
        .project-main-thumbnail {
            width: 100%;
            aspect-ratio: 16/9;
            background: #0a0a0a;
            border: 1px solid var(--line);
            border-radius: 12px;
            margin-bottom: 2.25rem;
            overflow: hidden;
        }
        
        .project-main-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }
        
        .project-header h1 {
            font-size: clamp(2.5rem, 5vw, 3.5rem);
            font-weight: 700;
            margin-bottom: 1rem;
            letter-spacing: -0.03em;
        }
        
        .project-header p {
            font-size: 1.1rem;
            color: var(--text-soft);
            margin-bottom: 1.8rem;
            line-height: 1.55;
        }
        
        .project-buttons {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
        }
        
        .btn {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.8rem 1.3rem;
            border-radius: 8px;
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            transition: all 0.2s ease;
            border: 1px solid;
        }
        
        .btn-primary {
            background: #fff;
            color: #000;
            border-color: #fff;
        }
        
        .btn-primary:hover {
            background: #f0f0f0;
            border-color: #f0f0f0;
            color: #000;
        }
        
        .btn-secondary {
            background: transparent;
            color: #fff;
            border-color: #333;
        }
        
        .btn-secondary:hover {
            border-color: #555;
            color: #fff;
        }
        
        /* Footer */
        footer {
            position: relative;
            padding: 2.7rem 2rem;
            max-width: var(--container);
            margin: 0 auto;
        }

        footer::before {
            content: "";
            position: absolute;
            top: 0;
            left: 2rem;
            right: 2rem;
            height: 1px;
            background: var(--line);
        }
        
        .footer-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 2rem;
        }
        
        .footer-left {
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
        }

        .footer-logo-row {
            display: flex;
            align-items: center;
            gap: 1rem;
        }
        
        .footer-logo {
            width: 32px;
            height: 32px;
            position: relative;
            top: 3px;
            left: 5px;
            opacity: 0.6;
        }
        
        .footer-text {
            color: var(--text-soft);
            font-size: 0.9rem;
        }

        .footer-a{
            color: var(--text-soft);
            transition: color 0.2s;
            text-decoration: none;
        }
        
        .footer-a:hover{
            color: white;
            text-decoration: underline;
        }

        .footer-license {
            color: #555;
            font-size: 0.85rem;
            max-width: 420px;
            line-height: 1.5;
        }
        
        .footer-links {
            display: flex;
            gap: 0.5rem;
        }
        
        .footer-link {
            color: var(--text-soft);
            text-decoration: none;
            font-size: 1.25rem;
            transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 8px;
            border: 1px solid var(--line);
        }
        
        .footer-link:hover {
            color: #fff;
            border-color: var(--line-strong);
            background: rgba(255, 255, 255, 0.06);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            header {
                padding: 2rem 1.5rem 1.7rem;
            }

            .projects-grid {
                grid-template-columns: 1fr;
                gap: 1.1rem;
            }
            
            main {
                padding: 1.7rem 1.5rem 3.5rem;
            }

            main::before {
                left: 1.5rem;
                right: 1.5rem;
            }
            
            .project-page {
                padding: 2rem 1.5rem 5rem;
            }

            footer::before {
                left: 1.5rem;
                right: 1.5rem;
            }

            .projects-pagination {
                width: fit-content;
                justify-content: center;
                border-radius: 999px;
            }

            .pagination-btn {
                flex: none;
            }
            
            .footer-content {
                flex-direction: column;
                align-items: flex-start;
                gap: 2rem;
            }

            .footer-left {
                width: 100%;
            }

            .footer-license {
                max-width: 100%;
            }

            .footer-links {
                width: 100%;
            }
        }
        
        .hidden {
            display: none;
        }
