/* style.css */
:root {
    --bg: #0a0e1a;
    --bg-2: #0f1424;
    --surface: #141a2e;
    --text: #e6eaf5;
    --muted: #8a93ad;
    --primary: #3b82f6;
    --primary-2: #60a5fa;
    --accent: #ff7a18;
    --accent-2: #ffb347;
    --border: rgba(255, 255, 255, .08);
    --shadow: 0 20px 60px rgba(0, 0, 0, .4);
    --transition: .4s cubic-bezier(.2, .8, .2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 800
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

ul {
    list-style: none
}

#mechBg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .6;
    transition: opacity .6s ease;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(59, 130, 246, .08), transparent 45%),
        radial-gradient(ellipse at 85% 80%, rgba(255, 122, 24, .06), transparent 45%),
        radial-gradient(ellipse at 50% 50%, transparent 40%, rgba(10, 14, 26, .5) 100%);
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .35;
    background-image:
        linear-gradient(rgba(59, 130, 246, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, .04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.site-header, .hero-split, .service-details, .about, .projects, .blog, .contact, .site-footer {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px
}

.accent {
    color: var(--accent)
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 14, 26, .55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(10, 14, 26, .88);
    border-bottom-color: var(--border);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 22px
}

.brand-text .en {
    font-family: 'Vazirmatn';
    letter-spacing: .5px;
    font-weight: 800
}

.logo {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 4px 12px rgba(59, 130, 246, .4));
    transition: transform .4s;
}

.brand:hover .logo {
    transform: rotate(-90deg)
}

.main-nav ul {
    display: flex;
    gap: 8px
}

.nav-link {
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--surface)
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.btn-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0e1a;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 122, 24, .3)
}

.burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px
}

.burger span {
    width: 26px;
    height: 2px;
    background: var(--text);
    transition: var(--transition)
}

/* Section Fade System */
.section-panel {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(.23, 1, .32, 1);
    will-change: opacity;
    pointer-events: none;
}

.section-panel.active-section {
    opacity: 1;
    pointer-events: auto;
}

/* Smooth Section Fade System */
.section-panel {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
    visibility: visible;
    /* Add transform for GPU acceleration */
    transform: translateZ(0);
    backface-visibility: hidden;
}

.section-panel.active-section {
    opacity: 1;
    pointer-events: auto;
}

/* Keep sections slightly visible to prevent jarring disappearance */
.section-panel:not(.active-section) {
    opacity: 0.08;
    transition: opacity 0.3s ease-out;
}

.hero-split {
    height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.hero-split.active-section {
    opacity: 1;
}

.hero-split:not(.active-section) {
    opacity: 0.08;
    transition: opacity 0.3s ease-out;
}

/* Add to the float animation to use GPU */
.float-title {
    animation: float 6s ease-in-out infinite;
    transform: translateZ(0);
    will-change: transform;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateZ(0);
    }
    50% {
        transform: translateY(-8px) translateZ(0);
    }
}

.section-panel,
.hero-split {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

.split-pane {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    transition: all .6s ease;
    overflow: hidden;
    cursor: pointer;
}

.split-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    transition: opacity .6s ease;
}

.split-smart::before {
    background: linear-gradient(135deg, rgba(59, 130, 246, .7), rgba(10, 14, 26, .85))
}

.split-industrial::before {
    background: linear-gradient(135deg, rgba(255, 122, 24, .7), rgba(10, 14, 26, .85))
}

.split-pane img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 1.2s ease;
}

.split-pane:hover img {
    transform: scale(1.1)
}

.split-pane:hover::before {
    opacity: .55
}

.split-content {
    position: relative;
    z-index: 2;
    max-width: 500px
}

.split-icon {
    font-size: 60px;
    margin-bottom: 24px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .5));
}

.split-smart .split-icon {
    color: var(--primary-2)
}

.split-industrial .split-icon {
    color: var(--accent-2)
}

.split-content h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 16px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}

/* Floating animation for hero h2 */
.float-title {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.split-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 32px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

.btn-split {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
    border: 2px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(10px);
    color: white;
}

.btn-split:hover {
    background: white;
    color: var(--bg);
    border-color: white;
    transform: scale(1.05)
}

.hero-split::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .3), transparent);
    z-index: 10;
    pointer-events: none;
}

section {
    padding: 70px 0;
    position: relative
}

.section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px
}

.section-head h5 {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .05em;
    margin-bottom: 12px
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 16px
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem
}

.service-details {
    padding: 120px 0
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center
}

.service-details.reverse .service-grid {
    direction: ltr
}

.service-details.reverse .service-grid>* {
    direction: rtl
}

.service-media img {
    border-radius: 20px;
    box-shadow: var(--shadow)
}

.service-content h5 {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px
}

.service-content h2 {
    font-size: 2.4rem;
    margin-bottom: 12px
}

.service-content .subtitle {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px
}

.service-features {
    display: grid;
    gap: 20px;
    margin-bottom: 36px
}

.service-feature {
    display: flex;
    gap: 18px;
    align-items: flex-start
}

.feature-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(255, 122, 24, .15));
    display: grid;
    place-items: center;
    font-size: 20px;
    color: var(--accent);
    border: 1px solid var(--border);
}

.service-feature h4 {
    font-size: 1.1rem;
    margin-bottom: 4px
}

.service-feature p {
    color: var(--muted);
    font-size: 14.5px
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, .4)
}

.about {
    background: rgba(15, 20, 36, .6);
    backdrop-filter: blur(4px)
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center
}

.about-media {
    position: relative
}

.about-media img {
    border-radius: 20px
}

.about-badge {
    position: absolute;
    bottom: -24px;
    right: -20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0e1a;
    padding: 18px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow);
}

.about-badge i {
    font-size: 28px
}

.about-badge strong {
    display: block;
    font-size: 18px
}

.about-badge span {
    font-size: 12px;
    opacity: .8
}

.about-text h5 {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px
}

.about-text h2 {
    font-size: 2.4rem;
    margin-bottom: 20px
}

.about-text>p {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: 1.05rem
}

.about-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.about-values>div {
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px
}

.about-values i {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 10px
}

.about-values h4 {
    font-size: 1rem;
    margin-bottom: 6px
}

.about-values p {
    font-size: 13.5px;
    color: var(--muted)
}

.filter-bar {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap
}

.filter {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.filter:hover {
    color: var(--text)
}

.filter.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    color: white;
    border-color: transparent
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.project-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: var(--transition);
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .6s
}

.project-card:hover img {
    transform: scale(1.1)
}

.project-info {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(10, 14, 26, .95) 10%, rgba(10, 14, 26, .3) 50%, transparent);
}

.project-info .cat {
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px
}

.project-info h4 {
    font-size: 1.2rem;
    margin-bottom: 6px
}

.project-info p {
    color: var(--muted);
    font-size: 13.5px;
    opacity: 0;
    max-height: 0;
    transition: var(--transition)
}

.project-card:hover .project-info p {
    opacity: 1;
    max-height: 80px
}

/* GitHub Card */
.github-card {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    transition: var(--transition);
    background: linear-gradient(135deg, #1a1f36 0%, #0d1117 100%);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
}

.github-card:hover {
    transform: translateY(-8px);
    border-color: #58a6ff;
    box-shadow: 0 15px 40px rgba(56, 139, 253, .15)
}

.github-card .gh-header {
    padding: 28px 28px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.github-card .gh-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #58a6ff;
    flex-shrink: 0;
    background: #161b22;
}

.github-card .gh-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.github-card .gh-name {
    font-weight: 700;
    font-size: 1.15rem;
    color: #58a6ff
}

.github-card .gh-handle {
    color: var(--muted);
    font-size: 13px
}

.github-card .gh-body {
    padding: 0 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.github-card .gh-bio {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7
}

.github-card .gh-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap
}

.github-card .gh-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    font-size: 13px
}

.github-card .gh-stat i {
    color: #58a6ff
}

.github-card .gh-footer {
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(22, 27, 34, .5);
}

.github-card .gh-repo-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
    font-size: 13px;
}

.github-card .gh-repo-count i {
    color: #58a6ff
}

.github-card .gh-visit {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #58a6ff;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition);
}

.github-card:hover .gh-visit {
    gap: 12px;
    color: #79c0ff
}

.github-card .gh-stars {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f0db4f;
    font-size: 13px;
    font-weight: 600;
    background: rgba(22, 27, 34, .7);
    padding: 6px 12px;
    border-radius: 100px;
    border: 1px solid rgba(240, 219, 79, .2);
}

.github-card .gh-dot {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #3fb950;
    box-shadow: 0 0 10px rgba(63, 185, 80, .5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1)
    }
    50% {
        opacity: .6;
        transform: scale(.8)
    }
}

.blog {
    background: rgba(15, 20, 36, .6);
    backdrop-filter: blur(4px)
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary)
}

.blog-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, .2), rgba(255, 122, 24, .15));
    color: var(--accent);
    font-size: 22px;
}

.blog-card .date {
    color: var(--muted);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px
}

.blog-card h4 {
    font-size: 1.2rem
}

.blog-card p {
    color: var(--muted);
    font-size: 14.5px;
    flex: 1
}

.btn-link {
    color: var(--accent);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition)
}

.btn-link:hover {
    gap: 14px
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start
}

.contact-info h5 {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 10px
}

.contact-info h2 {
    font-size: 2.2rem;
    margin-bottom: 16px
}

.contact-info>p {
    color: var(--muted);
    margin-bottom: 32px
}

.contact-list {
    display: grid;
    gap: 18px;
    margin-bottom: 32px
}

.contact-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start
}

.contact-list i {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--accent);
    font-size: 16px;
}

.contact-list strong {
    display: block;
    font-size: 14.5px;
    margin-bottom: 2px
}

.contact-list span {
    color: var(--muted);
    font-size: 14px
}

.socials {
    display: flex;
    gap: 10px
}

.socials a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    transition: var(--transition);
}

.socials a:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px)
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    display: grid;
    gap: 18px;
}

.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px
}

.field {
    display: grid;
    gap: 8px
}

.field label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 600
}

.field input, .field select, .field textarea {
    background: var(--bg-2);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 13px 16px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14.5px;
    transition: var(--transition);
}

.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .15);
}

.field textarea {
    resize: vertical
}

.form-msg {
    font-size: 14px;
    min-height: 20px;
    color: var(--accent);
    font-weight: 600
}

.site-footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    background: rgba(15, 20, 36, .8);
    backdrop-filter: blur(8px)
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 18px
}

.footer-brand svg {
    width: 36px;
    height: 36px
}

.footer-links {
    display: flex;
    gap: 24px
}

.footer-links a {
    color: var(--muted);
    font-size: 14px;
    transition: var(--transition)
}

.footer-links a:hover {
    color: var(--accent)
}

.site-footer p {
    color: var(--muted);
    font-size: 14px
}

/* Fixed Contact Button */
.fixed-contact-btn {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    border-radius: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0e1a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    box-shadow: 0 12px 30px rgba(255, 122, 24, .35);
    z-index: 200;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.fixed-contact-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 18px 40px rgba(255, 122, 24, .5);
}

.btn-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 34px;
    border: 2px solid rgba(255, 255, 255, .4);
    animation: pulse-ring 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* Fade-up animation (retained for inner elements) */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0)
}

.page-transition {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transition: opacity .35s ease;
}

.page-transition.active {
    opacity: 1
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
        scroll-snap-type: none;
    }
    .section-panel,
    .hero-split {
        scroll-snap-align: none;
    }
    #mechBg {
        display: none
    }
    .fade-up {
        transition: none;
        opacity: 1;
        transform: none
    }
    .float-title {
        animation: none;
    }
}

@media (max-width: 960px) {
    html {
        scroll-snap-type: y mandatory;
    }
    .hero-split {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
    }
    .hero-split::after {
        display: none
    }
    .section-panel,
    .hero-split {
        scroll-snap-align: start;
        scroll-snap-stop: always;
    }
    .split-pane {
        min-height: 50vh;
        padding: 60px 24px
    }
    .main-nav, .btn-cta {
        display: none
    }
    .burger {
        display: flex
    }
    .main-nav.open {
        display: flex;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(15, 20, 36, .96);
        padding: 20px;
        border-bottom: 1px solid var(--border);
        z-index: 99;
    }
    .main-nav.open ul {
        flex-direction: column;
        width: 100%
    }
    .main-nav.open .nav-link {
        display: block;
        padding: 14px
    }
    .service-grid, .about-grid, .contact-grid, .projects-grid, .blog-grid {
        grid-template-columns: 1fr
    }
    .service-details.reverse .service-grid {
        direction: rtl
    }
    .about-values {
        grid-template-columns: 1fr
    }
    .row {
        grid-template-columns: 1fr
    }
    section {
        padding: 70px 0
    }
    .projects-grid {
        grid-template-columns: 1fr 1fr
    }
    .github-card {
        aspect-ratio: auto;
        min-height: 300px
    }
}

@media (max-width: 540px) {
    .projects-grid {
        grid-template-columns: 1fr
    }
    .fixed-contact-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}