/* =========================================
   VYNTAX - ENHANCED STYLESHEET (UPDATED)
   - Supports live backgrounds (geometric/grid/hyperspeed)
   - Keeps mesh wrapper transparent so canvas shows through
   - Removes hero divider line
   - Fixes About page broken bottom layout (responsive grid)
   ========================================= */

/* =========================================
   1. GLOBAL RESET
   ========================================= */
html {
    scroll-behavior: smooth;
    background-color: #020617;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    background-color: transparent;
    color: white;
    overflow-x: hidden;
}

/* =========================================
   2. FULL-SCREEN BACKGROUND CANVASES
   ========================================= */
#geometric-bg,
#grid-canvas,
#hyperspeed-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -999;
    background: #020617;

    /* never block clicks */
    pointer-events: none;
}

/* slightly softer geometric canvas */
#geometric-bg {
    opacity: 0.95;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    #geometric-bg,
    #grid-canvas,
    #hyperspeed-canvas {
        display: none;
    }
}

/* =========================================
   3. NAVIGATION BAR
   ========================================= */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 10%;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo-img { height: 40px; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: #e2e8f0;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

/* =========================================
   4. HERO SECTION
   ========================================= */
.hero {
    min-height: 90vh;
    padding: 6rem 10% 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    background: transparent;

    /* removed divider line */
    border-bottom: none;

    overflow: hidden;
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 50;
}

h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 3.5rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    color: white;
}

.glitch-text {
    background: linear-gradient(90deg, #fff 0%, #d946ef 50%, #27c93f 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(217, 70, 239, 0.3));
}

.subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-group {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 55;
    flex-wrap: wrap;
}

.btn-main {
    padding: 12px 28px;
    font-weight: 700;
    color: white;
    background: linear-gradient(90deg, #d946ef, #a855f7);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
    transition: transform 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-main:hover { transform: translateY(-3px); }

.btn-outline {
    padding: 12px 28px;
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    border-color: #d946ef;
    background: rgba(255, 255, 255, 0.1);
}

/* 3D Code Card with Animated Gradient Border */
.hero-visual {
    perspective: 1000px;
    z-index: 10;
    position: relative;
}

.code-card {
    position: relative;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    padding: 2rem;
    border-radius: 24px;
    width: 350px;
    transform: rotateY(-15deg) rotateX(5deg);
    box-shadow:
        -20px 20px 60px rgba(0,0,0,0.6),
        0 0 40px rgba(217, 70, 239, 0.1);
    transition: all 0.5s ease;
    overflow: hidden;
}

/* Animated Gradient Border */
.code-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, #27c93f, #d946ef, #00fff9, #27c93f);
    background-size: 300% 300%;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: gradientRotate 4s linear infinite;
    opacity: 0.6;
}

/* Glowing Effect */
.code-card::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 24px;
    background: linear-gradient(
        135deg,
        rgba(39, 201, 63, 0.3),
        rgba(217, 70, 239, 0.3),
        rgba(0, 255, 249, 0.3)
    );
    background-size: 300% 300%;
    filter: blur(20px);
    opacity: 0;
    transition: opacity 0.5s;
    z-index: -1;
    animation: gradientRotate 4s linear infinite;
}

.code-card:hover {
    transform: rotateY(-5deg) rotateX(0deg) scale(1.05);
    box-shadow:
        -20px 20px 80px rgba(0,0,0,0.8),
        0 0 60px rgba(217, 70, 239, 0.3),
        0 0 100px rgba(39, 201, 63, 0.2);
}
.code-card:hover::before { opacity: 1; }
.code-card:hover::after { opacity: 1; }

@keyframes gradientRotate {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.code-card > * { position: relative; z-index: 1; }

.card-header {
    display: flex;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
    transition: all 0.3s;
}
.dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 20px currentColor;
}
.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-content {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
}
.keyword { color: #d946ef; font-weight: bold; }
.var { color: #fff; }
.string { color: #27c93f; }

/* =========================================
   5. MESH WRAPPER (TRANSPARENT)
   ========================================= */
.mesh-background {
    position: relative;
    width: 100%;
    background: transparent;
    background-image: none;
}

/* =========================================
   6. TOOLS / SNIPPETS / BLOG CONTAINERS
   ========================================= */
.tools-container,
.snippets-container,
.blog-container {
    padding: 4rem 10%;
    position: relative;
    z-index: 2;
}

.section-header,
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 { font-size: 2.5rem; margin-bottom: 0.5rem; color: white; }
.section-header p,
.section-title p { color: #94a3b8; font-size: 1.1rem; }

.tool-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4rem;
    width: 100%;
}

.tool-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.tool-card:hover {
    border-color: #d946ef;
    box-shadow: 0 15px 40px rgba(217, 70, 239, 0.2);
}

.tool-card h3 {
    color: #27c93f;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.preview-area {
    background: #020617;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
}

#shadow-box { width: 80px; height: 80px; background: #fff; border-radius: 12px; }
#gradient-box { width: 100%; height: 100%; }
#glass-box {
    padding: 20px 40px;
    color: white;
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    border-radius: 12px;
}

.controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.5rem; }
.control-group { display: flex; justify-content: space-between; align-items: center; }
.control-group label { color: #94a3b8; font-size: 0.9rem; }

input[type=range] { accent-color: #d946ef; cursor: pointer; flex: 1; margin-left: 15px; }
input[type=color] { cursor: pointer; height: 35px; border: none; background: transparent; }

select {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
}

.code-output {
    background: #1e293b;
    padding: 10px;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #27c93f;
    gap: 10px;
}
.code-output span {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.code-output button {
    background: #d946ef;
    border: none;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.75rem;
    white-space: nowrap;
}
.code-output button:hover { background: #a855f7; }

/* =========================================
   7. SNIPPETS + BLOG GRID + DEMOS
   ========================================= */
.snippets-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.snippet-card {
    background: #0f172a;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    transition: transform 0.3s ease, border-color 0.3s ease;
}
.snippet-card:hover { transform: translateY(-5px); border-color: #d946ef; }

.snippet-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    position: relative;
    overflow: hidden;
}

.snippet-footer {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.snippet-footer h4 { margin: 0; color: #e2e8f0; }

.copy-snip-btn {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.copy-snip-btn:hover { border-color: #d946ef; color: #d946ef; }

.hidden-code { display: none; }

/* snippet demo styles */
.demo-neon-btn {
    background: #d946ef;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px #d946ef;
    font-weight: bold;
}

.demo-loader {
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid #27c93f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

.demo-glass {
    background: rgba(255,255,255,0.1);
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(5px);
}

.demo-glitch {
    position: relative;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-transform: uppercase;
}
.demo-glitch::before,
.demo-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
}
.demo-glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00c1;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2.5s infinite linear alternate-reverse;
}
.demo-glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(20px, 9999px, 10px, 0); }
    20% { clip: rect(60px, 9999px, 70px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(80px, 9999px, 90px, 0); }
    80% { clip: rect(30px, 9999px, 40px, 0); }
    100% { clip: rect(50px, 9999px, 20px, 0); }
}
@keyframes glitch-anim-2 {
    0% { clip: rect(90px, 9999px, 100px, 0); }
    20% { clip: rect(10px, 9999px, 30px, 0); }
    40% { clip: rect(50px, 9999px, 20px, 0); }
    60% { clip: rect(20px, 9999px, 60px, 0); }
    80% { clip: rect(70px, 9999px, 10px, 0); }
    100% { clip: rect(40px, 9999px, 90px, 0); }
}

.demo-gradient-card {
    position: relative;
    background: #0f172a;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    z-index: 1;
}
.demo-gradient-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    z-index: -1;
    background: linear-gradient(45deg, #ff00c1, #00fff9, #ff00c1);
    background-size: 200%;
    border-radius: 10px;
    filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: glowing 3s linear infinite;
}
.demo-gradient-card:hover::before { opacity: 1; }
.demo-gradient-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: #0f172a;
    border-radius: 8px;
}
@keyframes glowing {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.demo-typing {
    font-family: 'JetBrains Mono', monospace;
    border-right: 2px solid #27c93f;
    color: #27c93f;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    width: 15ch;
    animation: typing 3s steps(15), blink .5s step-end infinite alternate;
}
@keyframes typing { from { width: 0; } }
@keyframes blink { 50% { border-color: transparent; } }

.demo-smooth-scroll {
    background: #d946ef;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
}

.demo-skeleton {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    width: 80%;
    height: 20px;
    border-radius: 4px;
}
@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.demo-custom-scrollbar::-webkit-scrollbar { width: 8px; }
.demo-custom-scrollbar::-webkit-scrollbar-track { background: #0f172a; }
.demo-custom-scrollbar::-webkit-scrollbar-thumb { background: #d946ef; border-radius: 10px; }
.demo-custom-scrollbar::-webkit-scrollbar-thumb:hover { background: #a855f7; }

/* =========================================
   8. RESOURCES HUB
   ========================================= */
.resources-container {
    padding: 4rem 10%;
    position: relative;
    z-index: 2;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.resource-category {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.resource-category:hover {
    border-color: #27c93f;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 201, 63, 0.2);
}

.resource-category h3 {
    color: #27c93f;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.resource-list { list-style: none; padding: 0; margin: 0; }
.resource-list li { margin-bottom: 1rem; padding-left: 1.5rem; position: relative; }
.resource-list li::before { content: "→"; position: absolute; left: 0; color: #d946ef; }

.resource-list a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s;
    font-weight: 500;
}
.resource-list a:hover { color: #d946ef; }

/* =========================================
   9. CHEAT SHEETS
   ========================================= */
.cheatsheets-container { padding: 4rem 10%; position: relative; z-index: 2; }

.cheatsheet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cheatsheet-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cheatsheet-card:hover {
    border-color: #d946ef;
    box-shadow: 0 10px 30px rgba(217, 70, 239, 0.2);
}

.cheatsheet-header {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
}

.cheatsheet-header h3 { margin: 0; color: #27c93f; font-size: 1.1rem; }

.expand-icon {
    color: #d946ef;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
}
.cheatsheet-card.active .expand-icon { transform: rotate(45deg); }

.cheatsheet-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.cheatsheet-card.active .cheatsheet-content { max-height: 600px; }

.cheat-item {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.cheat-item code {
    background: #1e293b;
    color: #27c93f;
    padding: 4px 10px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    white-space: nowrap;
}
.cheat-item span { color: #94a3b8; font-size: 0.9rem; text-align: right; }

/* =========================================
   10. COMPONENT LIBRARY
   ========================================= */
.components-container { padding: 4rem 10%; position: relative; z-index: 2; }

.components-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.component-card {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.component-card:hover {
    border-color: #27c93f;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(39, 201, 63, 0.2);
}

.component-preview {
    background: #020617;
    height: 150px;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.component-card h4 { color: #e2e8f0; margin: 0 0 1rem 0; }

.demo-component-btn {
    background: linear-gradient(45deg, #d946ef, #a855f7);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
}
.demo-component-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(217, 70, 239, 0.6);
}

.demo-card-component {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    text-align: left;
}

.demo-badge {
    background: #27c93f;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
    display: inline-block;
}

/* =========================================
   11. LEARNING PATH
   ========================================= */
.learning-container { padding: 4rem 10%; position: relative; z-index: 2; }

.roadmap { max-width: 800px; margin: 0 auto; position: relative; }

.roadmap::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #d946ef, #27c93f);
}

.roadmap-step { display: flex; gap: 2rem; margin-bottom: 3rem; position: relative; }

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d946ef, #a855f7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(217, 70, 239, 0.4);
    z-index: 1;
}

.step-content {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    flex: 1;
    transition: all 0.3s ease;
}

.step-content:hover {
    border-color: #27c93f;
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(39, 201, 63, 0.2);
}

.step-content h3 { color: #27c93f; margin-top: 0; margin-bottom: 1rem; font-size: 1.3rem; }
.step-content ul { list-style: none; padding: 0; margin: 0; }
.step-content li { color: #94a3b8; margin-bottom: 0.5rem; padding-left: 1.5rem; position: relative; }
.step-content li::before { content: "✓"; position: absolute; left: 0; color: #d946ef; font-weight: bold; }

/* =========================================
   12. BLOG & ABOUT
   ========================================= */
.blog-hero { padding: 8rem 10% 4rem; text-align: center; }

.blog-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.blog-card:hover { transform: translateY(-5px); border-color: #d946ef; }

.card-image { height: 200px; background-size: cover; background-position: center; }

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

.category {
    color: #27c93f;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}
.read-more { margin-top: auto; color: #d946ef; text-decoration: none; font-weight: 600; }

.about-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.profile-card {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 700px;
    text-align: center;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    display: block;
    border: 3px solid #d946ef;
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4);
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.social-links a {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    text-decoration: none;
    transition: all 0.3s;
}
.social-links a:hover {
    border-color: #d946ef;
    background: rgba(217, 70, 239, 0.1);
    transform: translateY(-2px);
}

.bio-text { color: #94a3b8; line-height: 1.8; margin: 1.5rem 0; }
.bio-text p { margin-bottom: 1rem; }
.role { color: #27c93f; font-weight: 600; margin-bottom: 1.5rem; }

/* About page lower section */
.grid-container {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem 2rem;
}

.info-column h2 { color: #d946ef; margin-bottom: 1.5rem; }

.skills-grid { display: flex; flex-wrap: wrap; gap: 10px; }

.skill-tag {
    background: #1e293b;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.05);
    font-size: 0.9rem;
    transition: all 0.3s;
}
.skill-tag:hover {
    border-color: #27c93f;
    background: rgba(39, 201, 63, 0.1);
}

.edu-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
}

/* Responsive fix: prevents the "broken left side" you showed */
@media (max-width: 900px) {
    .hero { padding: 5rem 7% 2rem; flex-direction: column; gap: 2.5rem; }
    .code-card { width: min(350px, 92vw); }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem 1.25rem;
    }

    .tools-container,
    .snippets-container,
    .resources-container,
    .cheatsheets-container,
    .components-container,
    .learning-container,
    .blog-container {
        padding: 3rem 7%;
    }
}

@media (max-width: 520px) {
    h1 { font-size: 2.6rem; }
    .navbar { padding: 1.2rem 6%; }
    .nav-links { gap: 0.75rem; flex-wrap: wrap; justify-content: flex-end; }
    .nav-links a { padding: 8px 12px; }
}