/* style.css */

@font-face {
    font-family: 'PixelatedElegance';
    src: url('resource/fonts/PixelatedEleganceRegular-ovawB.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

: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', 'Tahoma', 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);
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.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;
    flex-shrink: 0;
}

.brand img {
    width: 32px;
    height: 32px;
    image-rendering: pixelated; /* Critical for pixel art — prevents blurring */
}

.brand-text .en {
    font-family: 'Vazirmatn', sans-serif;
    letter-spacing: 3.2px;
    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;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
    background: var(--surface);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    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);
    flex-shrink: 0;
}

.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);
}

/* Dynamic Nav Link Hover Transition */
.nav-link[data-dynamic="true"] {
    position: relative;
    overflow: hidden;
    min-width: 90px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-link[data-dynamic="true"] .nav-text,
.nav-link[data-dynamic="true"] .nav-alt-text {
    display: block;
    line-height: 1.2;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
}

.nav-link[data-dynamic="true"] .nav-alt-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 100%);
    opacity: 0;
    white-space: nowrap;
    color: var(--accent);
    font-weight: 700;
    pointer-events: none;
}

.nav-link[data-dynamic="true"]:hover .nav-text {
    transform: translateY(-100%);
    opacity: 0;
}

.nav-link[data-dynamic="true"]:hover .nav-alt-text {
    transform: translate(-50%, -50%);
    opacity: 1;
}

/* ============================================
   SECTION FADE SYSTEM
   ============================================ */

.section-panel {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    will-change: opacity;
    pointer-events: none;
    visibility: visible;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.section-panel.active-section {
    opacity: 1;
    pointer-events: auto;
}

.section-panel:not(.active-section) {
    opacity: 0.08;
    transition: opacity 0.3s ease-out;
}

/* ============================================
   HERO SPLIT
   ============================================ */

.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;
}

.hero-split.single-pane {
    grid-template-columns: 1fr !important;
}

.hero-split.single-pane::after {
    display: none !important;
}

.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);
}

.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); }
}

.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-panel,
.hero-split {
    scroll-snap-align: center;
    scroll-snap-stop: always;
}

/* ============================================
   SECTIONS COMMON
   ============================================ */

section {
    padding: 70px 0;
    position: relative;
}

.section-head {
    text-align: center;
    max-width: 900px; /* Increased from 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
   ============================================ */

.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
   ============================================ */

.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);
}

/* ============================================
   PROJECTS
   ============================================ */

.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 {
    direction: ltr;
    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
   ============================================ */

.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
   ============================================ */

.contact-grid {
    display: grid;
    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;
}

/* ============================================
   FOOTER
   ============================================ */

.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; }
}

/* ============================================
   ANIMATIONS
   ============================================ */

.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.2, .8, .2, 1), transform 0.7s 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;
}

/* Brand Text Animation Styles */
.brand-text .en {
    display: inline-flex;
}

.char-anim {
    display: inline-block;
    transition: font-family 0.3s ease, transform 0.3s ease;
    will-change: transform, font-family;
}

.char-anim.pixelated {
    font-family: 'PixelatedElegance', monospace !important;
    transform: translateY(-2px) scale(0.9);
}

/* Blog Thumbnail */
.blog-thumb {
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    margin-bottom: 4px;
}

.blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-thumb img {
    transform: scale(1.05);
}

/* Post Content Styling */
.post-content h2 {
    font-size: 1.8rem;
    color: var(--text);
    margin: 32px 0 16px;
}

.post-content h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 24px 0 12px;
}

.post-content p {
    margin-bottom: 16px;
    color: var(--muted);
}

.post-content ul, .post-content ol {
    margin: 16px 24px;
    color: var(--muted);
}

.post-content li {
    margin-bottom: 8px;
    padding-right: 8px;
}

.post-content img {
    border-radius: 12px;
    margin: 24px 0;
}

.post-content code {
    background: var(--surface);
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--accent);
}

.post-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.post-content blockquote {
    border-right: 4px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--surface);
    border-radius: 0 12px 12px 0;
}

/* Engineers Grid */
.engineers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.engineer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.engineer-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(59, 130, 246, .2);
}

.engineer-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-2);
}

.engineer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.engineer-card:hover .engineer-photo img {
    transform: scale(1.05);
}

.engineer-info {
    padding: 32px;
}

.engineer-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text);
}

.engineer-info .role {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.engineer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-2);
    border-radius: 10px;
    transition: var(--transition);
    color: var(--muted);
}

.contact-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-4px);
}

.contact-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.contact-item span {
    font-size: 14px;
    font-weight: 500;
}

.social-btn:hover {
    border-color: var(--accent) !important;
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    .engineers-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .engineer-info {
        padding: 24px;
    }
    
    .engineer-info h3 {
        font-size: 1.4rem;
    }
}


/* ============================================
   SERVICES OVERVIEW – 3×2 GRID WITH LINES
   ============================================ */

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

/* Horizontal lines between rows */
.service-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 36px 24px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

/* Right borders between columns (except last column) */
.service-row:not(:nth-child(3n)) {
    border-left: 1px solid var(--border);
}

/* Remove bottom border on last row (items 4, 5, 6) */
.service-row:nth-last-child(-n+3) {
    border-bottom: none;
}

.service-row:hover {
    background: rgba(59, 130, 246, .04);
}

.service-row-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    transition: var(--transition);
}

.service-row-icon svg {
    width: 100%;
    height: 100%;
}

.service-row:hover .service-row-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.service-row-content h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0;
    transition: var(--transition);
}

.service-row:hover .service-row-content h3 {
    color: var(--primary);
}

.service-row-content p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}

.service-row-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
}

.service-row:hover .service-row-arrow {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 960px) {
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    /* Reset column borders for 2-col layout */
    .service-row:not(:nth-child(3n)) {
        border-left: none;
    }
    .service-row:not(:nth-child(2n)) {
        border-left: 1px solid var(--border);
    }
    /* Reset last-row border removal for 2-col */
    .service-row:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
    .service-row:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 540px) {
    .services-list {
        grid-template-columns: 1fr;
    }
    .service-row:not(:nth-child(2n)),
    .service-row:not(:nth-child(3n)) {
        border-left: none;
    }
    .service-row:nth-last-child(-n+2),
    .service-row:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
    .service-row:last-child {
        border-bottom: none;
    }
    .service-row {
        flex-direction: row;
        text-align: right;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }
    .service-row-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .service-row-arrow {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   SERVICE AREA / LOCAL SEO SECTION
   ============================================ */

.service-area {
    background: rgba(15, 20, 36, .6);
    backdrop-filter: blur(4px);
}

.area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.area-hub {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
}

.area-hub-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(255, 122, 24, .15));
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--accent);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.area-hub h3,
.area-coverage h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 16px;
}

.area-hub address {
    font-style: normal;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 2;
    margin-bottom: 16px;
}

.area-hub address a {
    color: var(--primary);
    transition: var(--transition);
}

.area-hub address a:hover {
    color: var(--accent);
}

.area-desc {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.area-cities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.area-cities li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
}

.area-cities li i {
    color: var(--primary);
    font-size: 12px;
}

.area-note {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.area-cta {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.area-cta p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .area-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .area-hub {
        padding: 28px 24px;
    }
    .area-cities {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@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: 1100px) {
    .main-nav ul {
        gap: 2px;
    }
    .nav-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    .nav-link[data-dynamic="true"] {
        min-width: 70px;
        padding: 6px 12px;
    }
}

@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: 280px;
    }
}

@media (max-width: 540px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .fixed-contact-btn {
        bottom: 20px;
        left: 20px;
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}


/* ============================================
   ENGINEERS GRID (Contact Page)
   ============================================ */

.engineers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.engineer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.engineer-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(59, 130, 246, .2);
}

.engineer-photo {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--bg-2);
}

.engineer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.engineer-card:hover .engineer-photo img {
    transform: scale(1.05);
}

.engineer-info {
    padding: 32px;
}

.engineer-info h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--text);
}

.engineer-info .role {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}

.engineer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-2);
    border-radius: 10px;
    transition: var(--transition);
    color: var(--muted);
}

.contact-item:hover {
    background: var(--primary);
    color: white;
    transform: translateX(-4px);
}

.contact-item i {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.contact-item span {
    font-size: 14px;
    font-weight: 500;
}

/* ============================================
   SERVICE PAGE CONTENT PANEL
   ============================================ */

.service-panel {
    background: rgba(20, 26, 46, 0.5);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 48px 40px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.service-panel h3 {
    color: var(--text);
    font-size: 1.4rem;
    margin: 32px 0 16px;
}

.service-panel h3:first-child {
    margin-top: 0;
}

.service-panel ul {
    list-style: none;
    padding: 0;
    margin: 0 0 8px;
}

.service-panel li {
    position: relative;
    padding-right: 20px;
    margin-bottom: 12px;
}

.service-panel li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.service-panel li strong {
    color: var(--text);
}

/* ============================================
   SERVICE AREA / LOCAL SEO SECTION
   ============================================ */

.service-area {
    background: rgba(15, 20, 36, .6);
    backdrop-filter: blur(4px);
}

.area-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    max-width: 1000px;
    margin: 0 auto;
}

.area-hub {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 32px;
}

.area-hub-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(255, 122, 24, .15));
    display: grid;
    place-items: center;
    font-size: 24px;
    color: var(--accent);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.area-hub h3,
.area-coverage h3 {
    font-size: 1.3rem;
    color: var(--text);
    margin-bottom: 16px;
}

.area-desc {
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.9;
    margin-bottom: 16px;
}

.area-cities {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.area-cities li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 500;
}

.area-cities li i {
    color: var(--primary);
    font-size: 12px;
}

.area-note {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.area-cta {
    text-align: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.area-cta p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* ============================================
   SERVICES OVERVIEW – 3×2 GRID WITH LINES
   ============================================ */

.services-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
    margin: 0 auto;
}

.service-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 36px 24px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.service-row:not(:nth-child(3n)) {
    border-left: 1px solid var(--border);
}

.service-row:nth-last-child(-n+3) {
    border-bottom: none;
}

.service-row:hover {
    background: rgba(59, 130, 246, .04);
}

.service-row-icon {
    width: 56px;
    height: 56px;
    color: var(--accent);
    transition: var(--transition);
}

.service-row-icon svg {
    width: 100%;
    height: 100%;
}

.service-row:hover .service-row-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.service-row-content h3 {
    font-size: 1.15rem;
    color: var(--text);
    margin: 0;
    transition: var(--transition);
}

.service-row:hover .service-row-content h3 {
    color: var(--primary);
}

.service-row-content p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
    margin: 0;
}

.service-row-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    margin-top: auto;
    opacity: 0;
    transform: translateY(6px);
    transition: var(--transition);
}

.service-row:hover .service-row-arrow {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */

@media (max-width: 960px) {
    .engineers-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .engineer-info {
        padding: 24px;
    }
    .engineer-info h3 {
        font-size: 1.4rem;
    }
    .service-panel {
        padding: 32px 24px;
    }
    .service-panel h3 {
        font-size: 1.2rem;
    }
    .area-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .area-hub {
        padding: 28px 24px;
    }
    .services-list {
        grid-template-columns: repeat(2, 1fr);
    }
    .service-row:not(:nth-child(3n)) {
        border-left: none;
    }
    .service-row:not(:nth-child(2n)) {
        border-left: 1px solid var(--border);
    }
    .service-row:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
    .service-row:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

@media (max-width: 540px) {
    .services-list {
        grid-template-columns: 1fr;
    }
    .service-row:not(:nth-child(2n)),
    .service-row:not(:nth-child(3n)) {
        border-left: none;
    }
    .service-row:nth-last-child(-n+2),
    .service-row:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
    .service-row:last-child {
        border-bottom: none;
    }
    .service-row {
        flex-direction: row;
        text-align: right;
        align-items: center;
        gap: 16px;
        padding: 20px 0;
    }
    .service-row-icon {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }
    .service-row-arrow {
        opacity: 1;
        transform: translateY(0);
    }
    .area-cities {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Landing page overrides */
.landing-page {
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.landing-page .site-header {
    flex-shrink: 0;
    padding: 12px 0;
}

.landing-page .hero-split {
    flex: 1;
    min-height: 0;
    height: auto;
    scroll-snap-align: none;
    overflow: hidden;
}

.landing-page .site-footer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: rgba(10,14,26,0.9);
    backdrop-filter: blur(12px);
    padding: 12px 0;
}

.landing-page .footer-inner {
    justify-content: center;
}

@media (max-width: 768px) {
    .landing-page .hero-split {
        grid-template-columns: 1fr;
    }
    .landing-page .split-pane {
        padding: 30px 20px;
    }
}

/* ============================================
   SERVICES SHOWCASE PAGE
   ============================================ */

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.showcase-card {
    background: rgba(20, 26, 46, 0.4);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 36px 28px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.showcase-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    background: var(--surface);
    box-shadow: 0 20px 50px rgba(59, 130, 246, .12);
}

.showcase-card-icon {
    width: 64px;
    height: 64px;
    color: var(--accent);
    margin-bottom: 4px;
}

.showcase-card-icon svg {
    width: 100%;
    height: 100%;
}

.showcase-card h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 0;
}

.showcase-card p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
    margin: 0;
    flex: 1;
}

.showcase-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    transition: var(--transition);
    margin-top: auto;
}

.showcase-card:hover .showcase-card-link {
    gap: 14px;
    color: var(--accent);
}

/* Center lone last item when count isn't divisible by 3 */
.showcase-grid .showcase-card:last-child:nth-child(3n+1) {
    grid-column: 2;
}

@media (max-width: 960px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .showcase-grid .showcase-card:last-child:nth-child(3n+1) {
        grid-column: auto;
    }
}

@media (max-width: 540px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    .showcase-card {
        padding: 28px 24px;
    }
}

/* ============================================
   TEAM PROFILE PAGES – REDESIGNED
   ============================================ */

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

/* Hero Section */
.profile-hero {
    padding-top: 140px;
    padding-bottom: 80px;
}

.profile-hero-inner {
    display: flex;
    align-items: center;
    gap: 64px;
}

.profile-photo {
    width: 280px;
    height: 280px;
    border-radius: 24px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
}

.profile-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-role {
    color: var(--accent);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .03em;
    margin-bottom: 12px;
    display: block;
}

.profile-hero-info h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.profile-short-desc {
    color: var(--muted);
    font-size: 1.15rem;
    line-height: 1.9;
    margin-bottom: 28px;
    max-width: 600px;
}

.profile-socials {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border-radius: 100px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
}

.social-pill:hover {
    color: var(--text);
    border-color: var(--primary);
    background: rgba(59, 130, 246, .1);
    transform: translateY(-2px);
}

/* About Section */
.profile-about {
    padding: 80px 0;
}

.profile-about-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 64px;
    align-items: center;
}

.profile-about-text h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text);
}

.profile-about-text p {
    color: var(--muted);
    font-size: 16px;
    line-height: 2.2;
}

.profile-about-img {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.profile-about-img img {
    width: 100%;
    height: auto;
    display: block;
}

/* Skills Section – Tag Cloud */
.profile-skills {
    padding: 80px 0;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(20, 26, 46, 0.5);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.skill-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(255, 122, 24, .08);
    transform: translateY(-2px);
}

/* Certificates Section */
.profile-certs {
    padding: 80px 0;
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.cert-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: rgba(20, 26, 46, 0.4);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    backdrop-filter: blur(4px);
    transition: var(--transition);
}

.cert-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}

.cert-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, .15), rgba(255, 122, 24, .15));
    display: grid;
    place-items: center;
    font-size: 22px;
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.cert-info h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.cert-info p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 8px;
}

.cert-year {
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

/* Contact CTA */
.contact-cta {
    padding: 80px 0;
    text-align: center;
}

.contact-cta h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.contact-cta p {
    color: var(--muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-outline {
    padding: 16px 40px;
    font-size: 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 12px;
    font-weight: 700;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(59, 130, 246, .06);
}

/* Responsive */
@media (max-width: 960px) {
    .profile-hero-inner {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    .profile-socials {
        justify-content: center;
    }
    .profile-hero-info h1 {
        font-size: 2rem;
    }
    .profile-short-desc {
        margin-left: auto;
        margin-right: auto;
    }
    .profile-about-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .certs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 540px) {
    .profile-hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }
    .profile-photo {
        width: 160px;
        height: 160px;
    }
    .profile-hero-info h1 {
        font-size: 1.6rem;
    }
    .skill-tag {
        padding: 8px 18px;
        font-size: 13px;
    }
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
}


/* ============================================
   ENGINEERS GRID – REDESIGNED
   ============================================ */

.engineers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.engineer-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.engineer-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 20px 50px rgba(59, 130, 246, .12);
}

/* Photo */
.engineer-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: var(--bg-2);
}

.engineer-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.engineer-card:hover .engineer-photo img {
    transform: scale(1.05);
}

/* Info Container */
.engineer-info {
    padding: 28px 24px 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.engineer-info h3 {
    font-size: 1.4rem;
    color: var(--text);
    margin: 0;
}

.engineer-info .role {
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .03em;
    margin: 0;
}

/* Phone Button */
.engineer-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 100px;
    background: rgba(59, 130, 246, .08);
    border: 1px solid rgba(59, 130, 246, .2);
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
    margin-top: 4px;
    text-decoration: none;
}

.engineer-phone:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.engineer-phone i {
    font-size: 14px;
}

/* Social Icons Row */
.engineer-socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-2);
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 18px;
    transition: var(--transition);
    text-decoration: none;
}

.social-icon:hover {
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.social-icon[href*="github"]:hover {
    background: #333;
}

.social-icon[href*="linkedin"]:hover {
    background: #0077b5;
}

/* Profile CTA */
.profile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
    margin-top: 8px;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid var(--border);
    transition: var(--transition);
    text-decoration: none;
}

.profile-cta:hover {
    border-color: var(--accent);
    color: var(--accent);
    gap: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .engineers-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .engineer-photo {
        aspect-ratio: 1 / 1;
        max-height: 300px;
    }
    
    .engineer-info {
        padding: 24px 20px 28px;
    }
    
    .engineer-info h3 {
        font-size: 1.2rem;
    }
}