:root {
    --bg-dark: #050511;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);

    --primary: #00f2ff;
    /* Cyan Neon */
    --secondary: #bd00ff;
    /* Purple Neon */
    --text-main: #ffffff;
    --text-muted: #94a3b8;

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Outfit', sans-serif;

    --transition-fast: 0.3s ease;
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Canvas Background */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* Typography & Utilities */
h1,
h2,
h3 {
    font-family: var(--font-heading);
}

.accent {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 242, 255, 0.5);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
}

.section-title .accent {
    font-size: inherit;
    color: var(--primary);
}

.section-header {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    margin-top: -1.5rem;
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(5, 5, 17, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.logo .dot {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-item {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-fast);
    position: relative;
}

.nav-item:hover {
    color: var(--primary);
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 1rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.greeting {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.name {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.role {
    font-size: 2rem;
    color: var(--secondary);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 0 0 15px rgba(189, 0, 255, 0.4);
}

.tagline {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.btn-primary,
.btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 242, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-highlight);
    color: var(--text-main);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-muted);
    border-radius: 15px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Sections & Glass Cards */
.section {
    padding: 6rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 4rem;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--glass-highlight), transparent);
}

/* About Expanded */
.about-content-expanded {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-content-expanded p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.highlight {
    color: var(--primary);
    font-weight: 600;
}

.text-white {
    color: #fff;
    font-weight: 500;
}

/* Split Live Editor */
.live-editor-wrapper {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 1.5rem;
    height: 500px;
}

.editors-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    overflow: hidden;
}

.editor-window {
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.html-pane {
    flex: 1 1 50%;
    max-height: 50%;
    min-height: 0;
}

.css-pane {
    flex: 1 1 50%;
    max-height: 50%;
    min-height: 0;
    border-top: 2px solid #333;
}

.window-header {
    background: #252526;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #333;
    min-height: 35px;
}

.window-header .filename {
    font-family: 'Fira Code', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.editor-body {
    flex: 1;
    padding: 1rem;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d4d4d4;
    overflow-y: auto;
    position: relative;
    display: flex;
    background: #1e1e1e;
}

.line-numbers {
    display: flex;
    flex-direction: column;
    color: #4b525d;
    text-align: right;
    padding-right: 1rem;
    border-right: 1px solid #333;
    margin-right: 1rem;
    user-select: none;
    font-family: 'Fira Code', monospace;
}

.code-content {
    white-space: pre-wrap;
    width: 100%;
}

.preview-window {
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.preview-body {
    flex: 1;
    padding: 2rem;
    overflow-y: auto;
    font-family: var(--font-body);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.cursor {
    display: inline-block;
    width: 2px;
    background-color: var(--primary);
    animation: blink 1s infinite;
    margin-left: 2px;
    height: 1.2em;
    vertical-align: text-bottom;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Syntax */
.token-tag {
    color: #569cd6;
}

.token-attr {
    color: #9cdcfe;
}

.token-string {
    color: #ce9178;
}

.token-content {
    color: #d4d4d4;
}

.token-comment {
    color: #6a9955;
}

.token-prop {
    color: #9cdcfe;
}

.token-val {
    color: #ce9178;
}

.token-sel {
    color: #d7ba7d;
}

/* Skills */
.skills-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.skill-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
    border-left: 3px solid var(--secondary);
    padding-left: 1rem;
}

.skill-item {
    margin-bottom: 1.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--text-main);
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 5px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    opacity: 0.7;
}

/* Unified Pro Colors */
.text-fill {
    background: var(--primary);
    box-shadow: 0 0 10px rgba(0, 242, 255, 0.4);
}

.tool-fill {
    background: #3b82f6;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

.tools-list-detailed {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
}

.project-card {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 242, 255, 0.2);
}

.project-image-container {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.project-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.thumb-1 {
    background: linear-gradient(45deg, #1e293b, #0f172a);
}

.thumb-2 {
    background: linear-gradient(45deg, #475569, #334155);
}

.thumb-3 {
    background: linear-gradient(45deg, #64748b, #475569);
}

.thumb-4 {
    background: linear-gradient(45deg, #5865f2, #404eed);
}

.thumb-5 {
    background: linear-gradient(45deg, #0ea5e9, #0284c7);
}

.thumb-6 {
    background: linear-gradient(45deg, #8b5cf6, #7c3aed);
}

.project-card:hover .project-thumb {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    transition: 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.btn-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: 0.3s;
}

.btn-icon:hover {
    transform: scale(1.1);
    background: var(--primary);
}

.card-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.tags span {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

/* Contact Redesign */
.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.contact-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.btn-large {
    padding: 1rem 3rem;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 1rem 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-main);
    transition: 0.3s;
}

.social-card i {
    font-size: 1.5rem;
}

.social-card.fb:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-card.gh:hover {
    background: #333;
    border-color: #fff;
}

.social-card.dc:hover {
    background: #5865f2;
    border-color: #5865f2;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    z-index: 10;
}

.heart {
    color: #ff5f56;
}

/* ====== MINECRAFT WORLD SECTION ====== */
.minecraft-section {
    background: linear-gradient(180deg, #0a0e17 0%, #0d1420 100%);
    border-radius: 32px;
    padding: 4rem 3rem;
    margin-bottom: 4rem;
    position: relative;
    overflow: hidden;
}

.minecraft-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(0, 242, 255, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(189, 0, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.minecraft-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.minecraft-icon {
    width: 40px;
    height: 40px;
    color: var(--primary);
    filter: drop-shadow(0 0 10px rgba(0, 242, 255, 0.5));
}

.minecraft-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.minecraft-tagline {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 3rem;
}

.minecraft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Main Card spans first column and both rows */
.mc-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.mc-card:hover {
    border-color: rgba(0, 242, 255, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mc-card-main {
    grid-row: 1 / 3;
    grid-column: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(10, 18, 32, 0.9) 100%);
    border-left: 3px solid var(--primary);
}

.mc-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    width: fit-content;
    margin-bottom: 1.5rem;
}

.mc-badge i {
    color: #fbbf24;
}

.mc-card-main h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.mc-card-main>p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.mc-stats {
    display: flex;
    gap: 2rem;
    margin-top: auto;
}

.mc-stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    font-family: var(--font-heading);
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Sub Cards */
.mc-card-sub {
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    flex-direction: column;
}

.mc-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.icon-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.icon-purple {
    background: rgba(189, 0, 255, 0.2);
    color: var(--secondary);
}

.icon-cyan {
    background: rgba(0, 242, 255, 0.2);
    color: var(--primary);
}

.mc-card-sub h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.5rem;
}

.mc-card-sub>p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.mc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.mc-tags span {
    font-size: 0.75rem;
    padding: 0.35rem 0.8rem;
    background: rgba(0, 242, 255, 0.1);
    color: var(--primary);
    border-radius: 20px;
    border: 1px solid rgba(0, 242, 255, 0.2);
}

.mc-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    transition: all 0.3s ease;
}

.mc-link:hover {
    gap: 0.8rem;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.5);
}

.mc-link i {
    transition: transform 0.3s ease;
}

.mc-link:hover i {
    transform: translateX(3px);
}

/* Responsive */
@media (max-width: 900px) {
    .live-editor-wrapper {
        grid-template-columns: 1fr;
        height: auto;
    }

    .editors-column {
        height: 400px;
    }

    .preview-window {
        height: 300px;
    }

    .minecraft-grid {
        grid-template-columns: 1fr;
    }

    .mc-card-main {
        grid-row: auto;
        grid-column: auto;
    }

    .minecraft-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .glass-card {
        padding: 2rem;
    }
}