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

a, a:hover, a:active, a:visited, a:focus{
    text-decoration: none;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    line-height: 1.6;
    color: #e2e8f0;
    background-color: #1a1a1a;
    letter-spacing: 0.01em;
}

/* Navigation */
.nav {
    background-color: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    background: linear-gradient(45deg, #39ff14, #00ff80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* letter-spacing: 0.05em; */
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    /* letter-spacing: 0.05em; */
}

.nav-links a:hover {
    color: #39ff14;
}

/* Hero section */
.hero {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: white;
    padding: 1.5rem 0.8rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(57, 255, 20, 0.1), transparent 60%);
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #39ff14, #00ff80, #39ff14);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    color: #94a3b8;
    font-weight: 300;
    letter-spacing: 0.02em;
}

/* Portfolio grid */
.portfolio {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.portfolio h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.portfolio-grid {
    /* margin-bottom: 0.5rem; */
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.portfolio-item {
    background: #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0,0,0,0.3);
    border-color: rgba(57, 255, 20, 0.3);
}

.portfolio-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

video {
    margin: 1.5rem 0;
    width: 100%;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-content h3 {
    color: #f8fafc;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.portfolio-content p {
    color: #94a3b8;
    margin-bottom: 1rem;
    font-weight: 300;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tag {
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.1), rgba(0, 255, 128, 0.1));
    color: #39ff14;
    padding: 0.15rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    border: 1px solid rgba(57, 255, 20, 0.2);
    font-weight: 300;
    /* letter-spacing: 0.02em; */
}

/* About section */
.about {
    max-width: 825px;
    margin: 2rem auto;
    padding: 2rem 1rem;
    text-align: center;
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.about h2 {
    color: #f8fafc;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 700;
}

.about p {
    color: #94a3b8;
    font-weight: 300;
    letter-spacing: 0.01em;
}

#about {
    font-size: 1.2em;
}

/* Contact section */
.contact {
    background: linear-gradient(135deg, #2a2a2a, #1a1a1a);
    color: white;
    padding: 2rem 1rem;
    text-align: center;
    margin-top: 4rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.contact h2 {
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 2rem;
    font-weight: 700;
}

.contact p {
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #94a3b8;
    font-weight: 300;
}

/* .contact a {
    color: #39ff14;
    text-decoration: none;
    border: 2px solid #39ff14;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.contact a:hover {
    background: #39ff14;
    color: #1a1a1a;
    transform: translateY(-2px);
} */

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* About Page Styles */
.about-page {
    padding: 2rem 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.about-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.about-image {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.about-content .lead {
    font-size: 1.5rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.skill-category {
    background: #2a2a2a;
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}

.skill-category h3 {
    background: linear-gradient(90deg, #39ff14, #00ff80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.skill-category ul {
    list-style: none;
    color: #94a3b8;
    margin-left: 1rem;
}

.skill-category li {
    margin-bottom: 0.3rem;
}

/* Work Page Styles */
.work-filters {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: #2a2a2a;
    border: 1px solid rgba(255,255,255,0.1);
    color: #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: #39ff14;
    color: #1a1a1a;
}

/* Project Detail Page Styles */
.project-hero {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    position: relative;
}

.project-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-content {
    margin: auto;
    margin-top: -4rem;
    position: relative;
    background: #2a2a2a;
    border-radius: 12px;
    padding: 2rem 2rem;
    border: 1px solid rgba(255,255,255,0.1);
    width: 59%;
}

.project-content p{
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.project-header {
    margin-bottom: 1rem;
}

.project-header h1{
    font-size: 2rem;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    color: #94a3b8;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.gallery-grid img {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.02);
}

.project-tech {
    margin-top: 2rem;
}

.tech-list {
    list-style: none;
}

.tech-list li {
    margin-bottom: 1.5rem;
}

.tech-list h3 {
    background: linear-gradient(90deg, #39ff14, #00ff80);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

/* ==================== */
/* Code Block Styles    */
/* ==================== */

.project-content pre {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    margin: 1rem 0;
}

.project-content code {
    font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Inline code */
.project-content p code,
.project-content li code {
    background: rgba(57, 255, 20, 0.1);
    color: #39ff14;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    border: 1px solid rgba(57, 255, 20, 0.2);
}

/* ==================== */
/* Content Link Styles  */
/* ==================== */

.project-content a,
.project-links a {
    color: #39ff14;
    text-decoration: none;
    border-bottom: 1px solid rgba(57, 255, 20, 0.3);
    transition: all 0.3s ease;
}

.project-content a:hover,
.project-links a:hover {
    border-bottom-color: #39ff14;
}

/* Styled link button (for GitHub links, etc.) */
.project-link {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.1), rgba(0, 255, 128, 0.1));
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 50px;
    color: #39ff14;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: linear-gradient(90deg, #39ff14, #00ff80);
    color: #1a1a1a;
    border-color: transparent;
    transform: translateY(-2px);
}

/* ==================== */
/* Content List Styles  */
/* ==================== */

.project-content ul:not(.tags):not(.tech-list),
.project-links ul {
    list-style: none;
    margin: 1rem 0;
    padding-left: 0;
}

.project-content ul:not(.tags):not(.tech-list) li,
.project-links ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

.project-content ul:not(.tags):not(.tech-list) li::before,
.project-links ul li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #39ff14;
}

.cta-button {
    position: relative;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.1), rgba(0, 255, 128, 0.1));
    color: #39ff14;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 500;
    /* letter-spacing: 0.05em; */
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50px;
    padding: 2px;
    background: linear-gradient(90deg, #39ff14, #00ff80);
    -webkit-mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    mask: 
        linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.cta-button:hover {
    background: linear-gradient(90deg, #39ff14, #00ff80);
    color: #1a1a1a;
    transform: translateY(-2px);
}

/* Shader page specific styles */
.shader-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
}

.code-panel, .preview-panel {
    background: #2a2a2a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

.panel-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.panel-content {
    padding: 1rem;
    max-height: 600px;
    overflow: auto;
}

.preview-panel .panel-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    background: #000;
}

#shaderCanvas {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Controls styling */
.controls {
    margin-top: 2rem;
    background: #2a2a2a;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.control-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.control-item {
    display: flex;
    flex-direction: column;
}

.control-item label {
    margin-bottom: 0.5rem;
    color: #94a3b8;
}

/* Custom slider styling */
.control-item input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    width: 100%;
    height: 20px;
}

.control-item input[type="range"]::-webkit-slider-runnable-track {
    height: 4px;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.1), rgba(0, 255, 128, 0.1));
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 2px;
}

.control-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #39ff14;
    cursor: pointer;
    margin-top: -6px;
    transition: all 0.3s ease;
}

.control-item input[type="range"]::-webkit-slider-thumb:hover {
    background: #00ff80;
    transform: scale(1.1);
}

.control-item input[type="range"]:focus {
    outline: none;
}

/* Mozilla Firefox styles */
.control-item input[type="range"]::-moz-range-track {
    height: 4px;
    background: linear-gradient(90deg, rgba(57, 255, 20, 0.1), rgba(0, 255, 128, 0.1));
    border: 1px solid rgba(57, 255, 20, 0.2);
    border-radius: 2px;
}

.control-item input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border: none;
    border-radius: 50%;
    background: #39ff14;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-item input[type="range"]::-moz-range-thumb:hover {
    background: #00ff80;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .shader-container {
        grid-template-columns: 1fr;
    }
}


/* generated shader page styling
 <style>
        :root {
            --background: #1a1a1a;
            --surface: #2a2a2a;
            --text: #e2e8f0;
            --text-muted: #94a3b8;
            --accent: #39ff14;
            --accent-gradient: linear-gradient(90deg, #39ff14, #00ff80);
        }

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

        body {
            font-family: 'Space Grotesk', sans-serif;
            line-height: 1.6;
            color: var(--text);
            background-color: var(--background);
        }

        .nav {
            background-color: rgba(26, 26, 26, 0.95);
            backdrop-filter: blur(10px);
            padding: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
        }

        .nav-container {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .project-content {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 0 1rem;
        }

        .project-header {
            margin-bottom: 2rem;
        }

        .project-header h1 {
            font-size: 2.5rem;
            margin-bottom: 1rem;
            background: var(--accent-gradient);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .shader-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            margin: 2rem 0;
        }

        .code-panel, .preview-panel {
            background: var(--surface);
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
            overflow: hidden;
        }

        .panel-header {
            padding: 1rem;
            border-bottom: 1px solid rgba(255,255,255,0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .panel-content {
            padding: 1rem;
            max-height: 600px;
            overflow: auto;
        }

        .preview-panel .panel-content {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 400px;
            background: #000;
        }

        #shaderCanvas {
            width: 100%;
            height: 100%;
            border-radius: 8px;
        }

        .controls {
            margin-top: 2rem;
            background: var(--surface);
            padding: 1.5rem;
            border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.1);
        }

        .controls h3 {
            margin-bottom: 1rem;
            color: var(--accent);
        }

        .control-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
            margin-bottom: 1rem;
        }

        .control-item {
            display: flex;
            flex-direction: column;
        }

        .control-item label {
            margin-bottom: 0.5rem;
            color: var(--text-muted);
        }

        .control-item input {
            background: var(--background);
            border: 1px solid rgba(255,255,255,0.1);
            padding: 0.5rem;
            border-radius: 4px;
            color: var(--text);
        }

        pre {
            margin: 0 !important;
        }

        code {
            font-family: 'Fira Code', monospace;
        }

        @media (max-width: 768px) {
            .shader-container {
                grid-template-columns: 1fr;
            }
        }
    </style> */