/* ========================================
   chimme.de — Style Sheet
   ======================================== */

/* --- Reset & Custom Properties --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0e0e18;
    --bg-card: #12121f;
    --bg-card-hover: #181830;
    --text-primary: #e8e8f0;
    --text-secondary: #8888a8;
    --text-muted: #555570;
    --accent-cyan: #00e5ff;
    --accent-purple: #b44dff;
    --accent-magenta: #ff00ff;
    --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --glow-cyan: 0 0 20px rgba(0, 229, 255, 0.3);
    --glow-purple: 0 0 20px rgba(180, 77, 255, 0.3);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --nav-height: 72px;
    --section-padding: clamp(80px, 12vw, 160px);
    --content-width: 1200px;
    --border-subtle: 1px solid rgba(255, 255, 255, 0.06);
    --radius: 12px;
    --radius-lg: 20px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

::selection {
    background: var(--accent-purple);
    color: #fff;
}

/* --- Particle Canvas --- */
#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.4;
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    transition: background 0.4s, box-shadow 0.4s, backdrop-filter 0.4s;
}

#navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 30px rgba(0, 0, 0, 0.4);
}

.nav-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: opacity 0.3s;
}

.nav-logo:hover {
    opacity: 0.8;
}

.logo-bracket {
    color: var(--accent-cyan);
    font-weight: 300;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    color: var(--text-secondary);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: rgba(0, 229, 255, 0.1) !important;
    color: var(--accent-cyan) !important;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

.nav-cta:hover {
    background: rgba(0, 229, 255, 0.2) !important;
    border-color: rgba(0, 229, 255, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* --- Hero Section --- */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    scale: 1.1;
    transition: scale 0.5s;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.6) 50%, var(--bg-primary) 100%),
        radial-gradient(ellipse at 50% 0%, rgba(180, 77, 255, 0.15) 0%, transparent 60%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.hero-glitch {
    font-family: var(--font-mono);
    font-size: clamp(3rem, 10vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: heroIn 1s ease-out;
    filter: drop-shadow(0 0 40px rgba(0, 229, 255, 0.3));
}

.hero-glitch::before,
.hero-glitch::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
}

.hero-glitch:hover::before {
    animation: glitch1 0.3s ease-in-out;
}

.hero-glitch:hover::after {
    animation: glitch2 0.3s ease-in-out 0.05s;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: var(--text-secondary);
    margin-top: 16px;
    font-weight: 400;
    animation: heroIn 1s ease-out 0.2s both;
}

.hero-sep {
    color: var(--accent-purple);
    margin: 0 4px;
}

.hero-tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.8rem, 1.5vw, 1rem);
    color: var(--text-muted);
    margin-top: 12px;
    animation: heroIn 1s ease-out 0.4s both;
}

.hero-scroll {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 60px;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: heroIn 1s ease-out 0.6s both;
    transition: color 0.3s;
}

.hero-scroll:hover {
    color: var(--accent-cyan);
}

.hero-scroll svg {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* --- Sections --- */
.section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding) 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.section-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.section-title {
    font-family: var(--font-mono);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.section-title.center {
    text-align: center;
}

.title-accent {
    color: var(--accent-cyan);
    font-weight: 300;
    margin-right: 8px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 48px;
}

.section-subtitle.center {
    text-align: center;
}

/* --- About --- */
.about-lead {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 16px;
}

.about-lead strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.about-text p:first-of-type {
    color: var(--text-primary);
}

.about-stats {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: var(--border-subtle);
}

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

.stat-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-suffix {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* --- Image Frames --- */
.image-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: var(--border-subtle);
    background: var(--bg-card);
}

.image-frame img {
    width: 100%;
    transition: scale 0.6s ease;
}

.image-frame:hover img {
    scale: 1.05;
}

.image-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(180, 77, 255, 0.1));
    opacity: 0;
    transition: opacity 0.4s;
    pointer-events: none;
}

.image-frame:hover .image-glow {
    opacity: 1;
}

.image-frame-circle {
    border-radius: 50%;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
}

.image-frame-circle img {
    height: 100%;
    object-fit: cover;
}

/* --- Skills --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skill-category {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 32px;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}

.skill-category:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-cyan);
}

.skill-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 12px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
}

.skill-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--accent-cyan);
}

.skill-category h3 {
    font-family: var(--font-mono);
    font-size: 1.05rem;
    margin-bottom: 16px;
    font-weight: 600;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 6px;
    background: rgba(180, 77, 255, 0.08);
    border: 1px solid rgba(180, 77, 255, 0.15);
    color: var(--text-secondary);
    transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.skill-category:hover .tag {
    background: rgba(180, 77, 255, 0.15);
    border-color: rgba(180, 77, 255, 0.3);
    color: var(--text-primary);
}

/* --- Projects --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.project-card:hover {
    transform: translateY(-4px);
    border-color: rgba(180, 77, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-purple);
}

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

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-icon {
    width: 40px;
    height: 40px;
    stroke: var(--accent-purple);
    opacity: 0.7;
}

.project-links a {
    color: var(--text-muted);
    transition: color 0.3s;
}

.project-links a:hover {
    color: var(--accent-cyan);
}

.project-links svg {
    width: 20px;
    height: 20px;
}

.project-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

/* --- Infrastructure --- */
.infra-features {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.infra-feature {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-marker {
    width: 12px;
    height: 12px;
    min-width: 12px;
    border-radius: 50%;
    background: var(--accent-gradient);
    margin-top: 6px;
    box-shadow: var(--glow-cyan);
    position: relative;
}

.feature-marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.6;
}

.infra-feature h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.infra-feature p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* --- AI Section --- */
.ai-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.ai-card {
    padding: 24px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.ai-card:hover {
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: var(--glow-cyan);
}

.ai-card h4 {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--accent-cyan);
}

.ai-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.ai-text p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* --- AI News --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 16px;
}

.news-card {
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius);
    padding: 28px;
    display: flex;
    flex-direction: column;
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-cyan);
}

.news-card:hover::before {
    opacity: 1;
}

.news-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    gap: 12px;
}

.news-source {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(0, 229, 255, 0.08);
    border: 1px solid rgba(0, 229, 255, 0.15);
    color: var(--accent-cyan);
    white-space: nowrap;
    flex-shrink: 0;
}

.news-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.news-title {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 10px;
    flex: 1;
}

.news-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.news-title a:hover {
    color: var(--accent-cyan);
}

.news-summary {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
}

.news-meta {
    text-align: center;
    margin-top: 32px;
}

.news-curated-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 5px 14px;
    border-radius: 6px;
    background: rgba(180, 77, 255, 0.08);
    border: 1px solid rgba(180, 77, 255, 0.15);
    color: var(--text-muted);
}

/* --- Contact --- */
.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 40px);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-card);
    border: var(--border-subtle);
    border-radius: var(--radius);
    transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
    min-height: 140px;
    justify-content: center;
}

.contact-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 229, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), var(--glow-cyan);
}

.contact-card svg {
    width: 36px;
    height: 36px;
    margin-bottom: 16px;
    stroke: var(--accent-cyan);
    fill: none;
}

.contact-card:nth-child(2) svg,
.contact-card:nth-child(3) svg {
    fill: var(--accent-purple);
    stroke: none;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.contact-card span {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Footer --- */
footer {
    position: relative;
    z-index: 1;
    border-top: var(--border-subtle);
    background: var(--bg-primary);
}

.footer-inner {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 40px clamp(20px, 4vw, 40px);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 700;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Blog Section Styles */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: 0 8px 32px rgba(0, 229, 255, 0.15);
    transform: translateY(-4px);
}

.blog-card-header {
    margin-bottom: 1rem;
}

.blog-format {
    display: inline-block;
    background: rgba(180, 77, 255, 0.2);
    color: var(--accent-purple);
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.blog-card h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.blog-date {
    color: var(--accent-cyan);
}

.blog-read-time {
    opacity: 0.7;
}

.blog-excerpt {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.blog-tag {
    background: rgba(0, 229, 255, 0.1);
    color: var(--accent-cyan);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 400;
}

.blog-cta {
    text-align: center;
    margin-top: 3rem;
}

.blog-view-all-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent-cyan);
    color: var(--accent-cyan);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.blog-view-all-btn:hover {
    background: var(--accent-cyan);
    color: var(--bg-primary);
    box-shadow: 0 4px 16px rgba(0, 229, 255, 0.3);
}

/* --- Scroll Reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

/* --- Keyframes --- */
@keyframes heroIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

@keyframes glitch1 {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.8; transform: translate(-3px, -2px); }
    40% { opacity: 0; transform: translate(3px, 2px); }
    60% { opacity: 0.6; transform: translate(-2px, 1px); }
    80% { opacity: 0; transform: translate(2px, -1px); }
    100% { opacity: 0; transform: translate(0); }
}

@keyframes glitch2 {
    0% { opacity: 0; transform: translate(0); }
    20% { opacity: 0.6; transform: translate(3px, 2px); }
    40% { opacity: 0; transform: translate(-3px, -1px); }
    60% { opacity: 0.8; transform: translate(2px, -2px); }
    80% { opacity: 0; transform: translate(-2px, 1px); }
    100% { opacity: 0; transform: translate(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .skills-grid,
    .projects-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 100px 32px 32px;
        gap: 4px;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-left: var(--border-subtle);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1rem;
        padding: 12px 16px;
        width: 100%;
    }

    .section-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-grid .about-image {
        order: -1;
    }

    .infra-grid .infra-image {
        order: -1;
    }

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

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

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

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

    .contact-card {
        padding: 28px 20px;
    }

    .about-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .image-frame-circle {
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .hero-glitch {
        font-size: 2.5rem;
    }
}
