/* ============================================================
   sections.css  —  About · Projects · Skills · Engagement
                     Contact · Footer · Tool Popup · Responsive
   ============================================================ */

#about { background: linear-gradient(135deg, rgba(0,217,255,0.02) 0%, transparent 100%); }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }

.about-i { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; text-shadow: none !important; }
.about-q { color: var(--accent-cyan) !important; text-shadow: 0 0 20px var(--accent-cyan-glow) !important; position: relative; }
.about-q::after { display: none !important; }

.about-title-line {
    width: 72px; height: 3px; background: var(--accent-cyan);
    box-shadow: 0 0 12px var(--accent-cyan), 0 0 24px rgba(0,217,255,0.4);
    margin: 10px auto 0; border-radius: 2px;
}

/* ── WHO AM I PANEL — original size & layout preserved ── */
.code-flip-container {
    perspective: 1200px;
    cursor: pointer;
    position: relative;
    animation: panelFloat 5s ease-in-out infinite;
    will-change: transform;
}
.code-flip-inner {
    position: relative;
    width: 100%;
    transform-style: preserve-3d;
    transition: transform 0.72s cubic-bezier(0.4, 0, 0.2, 1);
}
.code-flip-inner.flipped { transform: rotateY(180deg); }

@keyframes panelFloat {
    0%, 100% { transform: translateY(0) rotate(0.001deg); }
    50%      { transform: translateY(-14px) rotate(0.001deg); }
}

.code-window {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.5),
        0 0 30px rgba(0,217,255,0.08);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    animation: panelGlow 5s ease-in-out infinite;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

@keyframes panelGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(0,217,255,0.1);
        border-color: var(--card-border);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(0,217,255,0.22);
        border-color: rgba(0,217,255,0.38);
    }
}

.code-flip-container:hover .code-window {
    box-shadow: 0 25px 70px rgba(0,0,0,0.55), 0 0 55px rgba(0,217,255,0.3);
    border-color: rgba(0,217,255,0.5);
}

.code-window-back {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    transform: rotateY(180deg);
    background: rgba(15, 10, 30, 0.92);
    border-color: rgba(138,43,226,0.3);
    animation: panelGlowBack 5s ease-in-out infinite;
}

@keyframes panelGlowBack {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 30px rgba(138,43,226,0.1);
        border-color: rgba(138,43,226,0.3);
    }
    50% {
        box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 50px rgba(138,43,226,0.25);
        border-color: rgba(138,43,226,0.55);
    }
}

.window-header {
    background: rgba(0,217,255,0.05); padding: 0.75rem 1rem;
    display: flex; align-items: center; gap: 0.5rem;
    border-bottom: 1px solid var(--card-border);
}
.code-window-back .window-header { background: rgba(138,43,226,0.08); border-bottom-color: rgba(138,43,226,0.25); }
.window-file-name { font-family: 'JetBrains Mono', monospace; font-size: 0.68rem; color: var(--text-tertiary); margin-left: 0.5rem; letter-spacing: 0.5px; }
.window-dot { width: 10.5px; height: 10.5px; border-radius: 50%; }
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

/* ORIGINAL code-content sizing restored */
.code-content { padding: 1.4rem 1.6rem 1rem; font-family: 'JetBrains Mono', monospace; font-size: 0.795rem; line-height: 1.82; }
.code-line { margin-bottom: 0.42rem; }

.code-keyword { color: #ff79c6; }
.code-function { color: #50fa7b; }
.code-string { color: #f1fa8c; }
.code-comment { color: #6272a4; }

.code-kw2 { color: #bd93f9; }
.code-fn2 { color: #8be9fd; }
.code-str2 { color: #ffb86c; }

/* Inline SVG symbols inside code (replace emojis) */
.code-inline-icon {
    display: inline-block;
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    margin: 0 1px;
}

.status-area { margin-top: 1.1rem; padding-top: 0.9rem; border-top: 1px solid rgba(0,217,255,0.12); }
.code-window-back .status-area { border-top-color: rgba(138,43,226,0.2); }
.status-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; }
.status-label { color: var(--text-tertiary); letter-spacing: 1px; }
.status-online { color: #27c93f; font-weight: 600; letter-spacing: 1.5px; text-shadow: 0 0 8px rgba(39,201,63,0.5); }
.status-dot-live { width: 7px; height: 7px; background: #27c93f; border-radius: 50%; box-shadow: 0 0 6px rgba(39,201,63,0.8), 0 0 12px rgba(39,201,63,0.4); animation: liveBlip 2s ease-in-out infinite; flex-shrink: 0; }
@keyframes liveBlip { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.6; transform: scale(0.8); } }
.status-avail { color: var(--text-secondary); font-size: 0.73rem; letter-spacing: 0.3px; }

.about-text p { font-size: 0.96rem; color: var(--text-secondary); margin-bottom: 1.45rem; line-height: 1.88; }
.about-text p.about-body { color: var(--text-secondary); }

.about-intro {
    color: #ffffff !important; font-weight: 500; font-size: 1.02rem !important;
    letter-spacing: 0.2px; opacity: 0.94;
}
.about-name { color: var(--accent-cyan); font-weight: 700; text-shadow: 0 0 10px rgba(0,217,255,0.3); }

/* ============================================================
   STRENGTHS — cards with animated rotating border glow
   ============================================================ */
.strengths {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

/* ── HIGHLIGHTS LIST ── */
.highlights-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.highlight-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
}

.highlight-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.highlight-icon-box.icon-cyan {
    color: #22d3ee;
}

.highlight-icon-box.icon-emerald {
    color: #34d399;
}

.highlight-icon-box.icon-amber {
    color: #fbbf24;
}

.highlight-label {
    color: #d1d5db;
    font-size: 0.875rem;
}

/* ── CTA LINK ── */
.highlight-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    color: #22d3ee;
    border-bottom: 1px solid rgba(34, 211, 238, 0.4);
    padding-bottom: 2px;
    transition: color 300ms ease, border-color 300ms ease;
    text-decoration: none;
}

.highlight-cta:hover {
    color: #22d3ee;
    border-color: #22d3ee;
}

.highlight-cta .cta-arrow {
    transition: transform 200ms ease;
    display: inline-block;
}

.highlight-cta:hover .cta-arrow {
    transform: translateX(4px);
}

/* ====================== PROJECTS ========================== */
#projects { background: linear-gradient(135deg, transparent 0%, rgba(138,43,226,0.02) 100%); }
.section-subtitle { text-align: center; color: var(--text-tertiary); max-width: 600px; margin: -2rem auto 2rem; font-size: 0.97rem; font-family: 'Poppins', sans-serif; font-weight: 400; line-height: 1.7; }

.projects-search-wrap { margin-bottom: 2.5rem; }

/* ============================================================
   SEARCH BAR — AI-chat-style orbiting dual-color neon border
   ============================================================ */
.search-bar-container {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    padding: 2px;
    border-radius: 16px;
    isolation: isolate;
    overflow: hidden;
}

.search-bar-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1.5px;
    background: conic-gradient(
        from var(--search-angle, 0deg),
        transparent 0deg,
        rgba(0, 217, 255, 0.85) 40deg,
        rgba(162, 89, 255, 0.85) 110deg,
        rgba(255, 121, 198, 0.6) 170deg,
        transparent 220deg,
        transparent 360deg
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    animation: searchBorderSpin 6s linear infinite;
    z-index: 1;
    pointer-events: none;
    filter: blur(0.3px);
}

.search-bar-container::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 20px;
    background: conic-gradient(
        from var(--search-angle, 0deg),
        transparent 0deg,
        rgba(0, 217, 255, 0.35) 40deg,
        rgba(162, 89, 255, 0.35) 110deg,
        transparent 200deg,
        transparent 360deg
    );
    animation: searchBorderSpin 6s linear infinite;
    filter: blur(14px);
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

@property --search-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}
@keyframes searchBorderSpin {
    to { --search-angle: 360deg; }
}

.search-input-wrap {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    background: rgba(15,22,35,0.92);
    border: none;
    border-radius: 14px;
    padding: 0 1.1rem;
    gap: 0.75rem;
    transition: box-shadow 0.3s ease;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.search-input-wrap:focus-within {
    box-shadow: 0 0 0 2px rgba(0,217,255,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}
.search-icon-svg { width: 16px; height: 16px; color: var(--accent-cyan); flex-shrink: 0; opacity: 0.7; }
#project-search { flex: 1; background: transparent; border: none; outline: none; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.83rem; padding: 0.88rem 0; letter-spacing: 0.35px; }
#project-search::placeholder { color: var(--text-tertiary); font-size: 0.79rem; }
.search-clear-btn { background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 1.2rem; line-height: 1; padding: 0.2rem 0.3rem; border-radius: 50%; transition: color 0.2s ease, background 0.2s ease; display: none; }
.search-clear-btn:hover { color: var(--accent-cyan); background: rgba(0,217,255,0.1); }
.search-no-results { display: none; text-align: center; padding: 4rem 2rem; grid-column: 1 / -1; }
.no-result-code { font-family: 'JetBrains Mono', monospace; font-size: 3rem; color: rgba(0,217,255,0.15); margin-bottom: 1rem; letter-spacing: 4px; }
.no-result-main { font-family: 'JetBrains Mono', monospace; font-size: 1rem; color: var(--accent-cyan); letter-spacing: 3px; margin-bottom: 0.5rem; }
.no-result-sub { font-family: 'Poppins', sans-serif; font-size: 0.82rem; color: var(--text-tertiary); letter-spacing: 1px; }

/* ── PROJECT CARDS ─────────── */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.2rem;
    align-items: stretch;
}
.project-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    height: 100%;
}
.project-card:hover { transform: translateY(-10px); box-shadow: 0 20px 60px rgba(0,217,255,0.2); border-color: var(--accent-cyan); }

.project-number {
    position: absolute;
    top: 0.95rem;
    right: 0.95rem;
    background: rgba(10, 16, 26, 0.78);
    color: var(--accent-cyan);
    padding: 0.3rem 0.65rem;
    min-width: 44px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 1.2px;
    z-index: 2;
    border: 1px solid rgba(0, 217, 255, 0.35);
    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(0, 217, 255, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 0 6px rgba(0, 217, 255, 0.4);
}

.project-image-wrap {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 16 / 9;
}
.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-image-wrap .project-image {
    height: 100%;
    width: 100%;
}
.project-card:hover .project-image { transform: scale(1.05); }

.project-content {
    padding: 0.95rem 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.project-card-layout-match { display: flex; flex-direction: column; height: 100%; }
.project-card-layout-match .project-content { padding: 0.95rem 1.25rem 1rem; }

.project-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.15rem;
    margin: 0 0 0.42rem 0;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}
.project-title-hidden { visibility: hidden; }

.project-description {
    color: var(--text-secondary);
    margin: 0 0 0.6rem 0;
    line-height: 1.6;
    font-family: 'Poppins', sans-serif;
    font-size: 0.86rem;
    font-weight: 400;
    flex: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin: 0 0 0.5rem 0;
    min-height: 0;
    align-content: flex-start;
}
.tag {
    padding: 0.18rem 0.5rem;
    background: rgba(0,217,255,0.1);
    border: 1px solid var(--accent-cyan);
    border-radius: 14px;
    font-size: 0.6rem;
    color: var(--accent-cyan);
    font-weight: 500;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.3px;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    padding-top: 0.5rem;
    margin-top: auto;
    border-top: 1px solid rgba(0,217,255,0.15);
}
.project-card-layout-match .project-links { margin-top: auto; }
.project-link { display: inline-flex; align-items: center; gap: 0.44rem; text-decoration: none; font-family: 'Poppins', sans-serif; font-size: 0.78rem; font-weight: 600; background: none; border: none; padding: 0; cursor: pointer; transition: transform 0.2s ease, color 0.2s ease; }
.project-link:hover { transform: scale(1.07); }
.link-demo { color: var(--accent-cyan); }
.link-demo:hover { color: #7eeeff; text-shadow: 0 0 10px rgba(0,217,255,0.6); }
.link-download { color: var(--text-secondary); }
.link-download:hover { color: var(--text-primary); }
.link-disabled { opacity: 0.35; pointer-events: none; cursor: not-allowed; }

.project-card.coming-soon .project-content {
    padding: 1.1rem 1.3rem 1.1rem;
}
.project-card.coming-soon .project-title { font-size: 1.2rem; margin-bottom: 0.5rem; }
.project-card.coming-soon .project-description { font-size: 0.9rem; line-height: 1.65; margin-bottom: 0.7rem; }
.project-card.coming-soon .tag { padding: 0.2rem 0.55rem; font-size: 0.62rem; }
.project-card.coming-soon .project-links { padding-top: 0.55rem; }
.project-card.coming-soon:hover { transform: none; box-shadow: none; border-color: var(--card-border); }

.coming-soon-overlay { position: absolute; inset: 0; background: rgba(5,10,20,0.82); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.5rem; }
.coming-soon-overlay .cs-icon { width: 50px; height: 50px; border-radius: 50%; border: 2px solid rgba(0,217,255,0.35); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 800; color: rgba(0,217,255,0.55); font-family: 'Montserrat', sans-serif; box-shadow: 0 0 20px rgba(0,217,255,0.1); }
.coming-soon-overlay .cs-label { font-family: 'JetBrains Mono', monospace; font-size: 0.62rem; letter-spacing: 3px; text-transform: uppercase; color: rgba(0,217,255,0.5); }
.cs-hint-bar { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.55rem 0; flex-wrap: wrap; }
.cs-hint-label { font-family: 'JetBrains Mono', monospace; font-size: 0.6rem; color: var(--text-tertiary); letter-spacing: 1px; text-transform: uppercase; }
.cs-hint-tag { padding: 0.16rem 0.5rem; background: rgba(0,217,255,0.06); border: 1px solid rgba(0,217,255,0.2); border-radius: 4px; font-size: 0.6rem; color: rgba(0,217,255,0.55); font-family: 'JetBrains Mono', monospace; }

.projects-more-section { text-align: center; margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.load-more-btn { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.78rem 2.1rem; background: rgba(0,217,255,0.07); border: 1px solid rgba(0,217,255,0.35); border-radius: 50px; color: var(--accent-cyan); font-family: 'Poppins', sans-serif; font-size: 0.83rem; font-weight: 600; letter-spacing: 1px; cursor: pointer; transition: all 0.3s ease; backdrop-filter: blur(8px); }
.load-more-btn:hover { background: rgba(0,217,255,0.14); border-color: var(--accent-cyan); box-shadow: 0 0 24px rgba(0,217,255,0.25); transform: translateY(-2px); }
.load-more-btn .arrow-down { animation: arrowBob 1.5s ease-in-out infinite; }
@keyframes arrowBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
.load-more-dots { display: flex; gap: 0.4rem; opacity: 0.35; }
.load-more-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--accent-cyan); }
.batch-2 { display: none; }
.coming-soon-wrapper { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 3.5rem; opacity: 0.55; }
.coming-soon-line { flex: 1; max-width: 120px; height: 1px; background: linear-gradient(90deg, transparent, rgba(0,217,255,0.35)); }
.coming-soon-line.right { background: linear-gradient(90deg, rgba(0,217,255,0.35), transparent); }
.coming-soon-text { font-family: 'JetBrains Mono', monospace; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-tertiary); }

/* TECH ARSENAL (RECREATED) */
.tech-arsenal {
    position: relative;
    padding: 7rem 1.5rem;
    background: linear-gradient(135deg, rgba(0,217,255,0.02) 0%, transparent 100%);
    overflow: hidden;
}

/* arsenal-bg-effect removed as per user request */

.arsenal-container {
    max-width: 64rem; /* 5xl */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.arsenal-header {
    text-align: center;
    margin-bottom: 4rem; /* Sane gap instead of 16rem for visual flow */
}

.terminal-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 0.5rem;
}

.arsenal-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.arsenal-divider {
    width: 5rem;
    height: 3px;
    background: var(--accent-cyan);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--accent-cyan);
    border-radius: 50px;
}

.arsenal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .arsenal-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.arsenal-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.skill-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.6rem;
}

.skill-label {
    font-family: 'Poppins', sans-serif;
    color: #d1d5db; /* Gray-300 */
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.125em;
}

.skill-percentage-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.skill-bar-track {
    height: 6px; /* h-1.5 */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 1000ms ease-out;
    width: 0;
}

.tech-tools { margin-top: 4rem; }
.tools-label { text-align: center; font-size: 0.85rem; color: var(--text-tertiary); margin-bottom: 2rem; text-transform: uppercase; letter-spacing: 2.5px; font-weight: 600; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.tool-badge { padding: 0.6rem 1.4rem; background: rgba(0, 245, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 50px; font-size: 0.75rem; color: #9ca3af; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px; }
.tool-badge:hover { background: rgba(0, 245, 255, 0.08); border-color: var(--accent-cyan); color: #ffffff; transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 245, 255, 0.15); }

/* ENGAGEMENT */
#engagement { background: linear-gradient(135deg, rgba(138,43,226,0.02) 0%, rgba(0,217,255,0.02) 100%); min-height: auto; padding: 4rem 5%; }
.engagement-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-bottom: 2rem; }
.stat-card { position: relative; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 20px; padding: 2rem 1.5rem; text-align: center; overflow: hidden; transition: all 0.4s ease; backdrop-filter: blur(12px); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: rgba(0,217,255,0.32); }
.stat-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(0,217,255,0.06) 0%, transparent 70%); pointer-events: none; }
.stat-card:hover { transform: translateY(-8px); border-color: var(--accent-cyan); box-shadow: 0 20px 50px rgba(0,217,255,0.15); }
.stat-icon-wrap { width: 52px; height: 52px; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(0,217,255,0.08); border: 1px solid rgba(0,217,255,0.2); box-shadow: 0 0 20px rgba(0,217,255,0.08); }
.stat-icon-wrap svg { width: 24px; height: 24px; color: var(--accent-cyan); }
.stat-number-wrap { display: flex; align-items: baseline; justify-content: center; gap: 2px; margin-bottom: 0.4rem; }
.stat-number { font-family: 'Montserrat', sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.stat-suffix { font-family: 'Montserrat', sans-serif; font-size: 1.4rem; font-weight: 800; color: var(--accent-cyan); line-height: 1; }
.stat-suffix-text { font-family: 'Poppins', sans-serif; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-label { font-family: 'Poppins', sans-serif; font-size: 0.8rem; color: var(--text-tertiary); font-weight: 500; letter-spacing: 0.6px; text-transform: uppercase; margin-bottom: 0.8rem; }
.stat-bar-wrap { height: 4px; background: rgba(0,217,255,0.08); border-radius: 10px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 10px; background: rgba(0,217,255,0.85); width: 0%; transition: width 1.8s ease; }

/* CONTACT (RECREATED) */
.contact-recreated {
    position: relative;
    padding: 7rem 1.5rem;
    background: linear-gradient(135deg, transparent 0%, rgba(138,43,226,0.02) 100%);
}

.contact-container {
    max-width: 64rem; /* 5xl */
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem; /* Standardizing mb-16 as 4rem for consistency with Arsenal */
}

.contact-terminal-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 0.5rem;
}

.contact-main-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 1.2rem;
}

.contact-divider {
    width: 5rem;
    height: 2px;
    background: var(--accent-cyan);
    margin: 0 auto;
    box-shadow: 0 0 10px var(--accent-cyan);
    border-radius: 50px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .contact-info-col {
        grid-column: span 2;
    }
    .contact-form-col {
        grid-column: span 3;
    }
}

.contact-description h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2rem; /* Increased from 1.125rem (~6% increase) */
    margin-bottom: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.contact-description p {
    color: #9ca3af;
    margin-bottom: 2.2rem;
    line-height: 1.65;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem; /* Increased from 0.875rem (~5% increase) */
}

.connect-label-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem; /* Increased from 0.75rem (~6% increase) */
    color: #4b5563;
    letter-spacing: 0.125em;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

/* ============================================================
   SOCIAL LINKS — FLEX COLUMN AS PER NEW SPECS
   ============================================================ */
.social-links {
    display: flex;
    gap: 2.2rem;
}

.social-col {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    flex: 1;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0;
    width: fit-content;
    background: transparent;
    border: none;
    color: #9ca3af;
    text-decoration: none;
    transition: all 300ms ease;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem; /* Increased from 0.875rem */
    font-weight: 400;
}

.social-link:hover {
    color: #ffffff;
}

.sl-icon-box {
    width: 2.38rem; height: 2.38rem; /* Increased from 2.25rem (~6% increase) */
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 300ms ease;
}

.social-link:hover .sl-icon-box {
    border-color: rgba(255, 255, 255, 0.4);
}

.social-icon { 
    width: 16px; height: 16px; /* Increased from 15px */
    transition: transform 300ms ease; 
}

/* WhatsApp Hover */
.social-link.sl-whatsapp:hover .social-icon { color: #25d366; transform: scale(1.1); }

/* LinkedIn Alt Hover */
.social-link.sl-linkedin-alt:hover .social-icon { color: #0077b5; transform: scale(1.1); }

/* Facebook Hover */
.social-link.sl-facebook:hover .social-icon { color: #1877f2; transform: scale(1.1); }

/* Twitter Alt Hover */
.social-link.sl-twitter-alt:hover .social-icon { color: #1da1f2; transform: scale(1.1); }

/* YouTube Hover */
.social-link.sl-youtube:hover .social-icon { color: #ff0000; transform: scale(1.1); }

/* Instagram Hover */
.social-link.sl-instagram:hover .social-icon { color: #e1306c; transform: scale(1.1); }

/* GitHub Hover */
.social-link.sl-github:hover .social-icon { color: #e2e8f0; transform: scale(1.1); }

/* Email Hover */
.social-link.sl-email:hover .social-icon { color: #00f5ff; transform: scale(1.1); }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }
.form-row { display: flex; gap: 1.3rem; align-items: end; }
.form-group { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.8rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.9px; font-family: 'Poppins', sans-serif; font-weight: 600; }
.form-input, .form-textarea { padding: 0.97rem; background: rgba(0,217,255,0.05); border: 1px solid var(--card-border); border-radius: 6.3px; color: var(--text-primary); font-family: 'JetBrains Mono', monospace; font-size: 0.9rem; transition: all 0.3s ease; }
.form-input:focus, .form-textarea:focus { outline: none; border-color: var(--accent-cyan); background: rgba(0,217,255,0.1); box-shadow: 0 0 20px rgba(0,217,255,0.2); }
.form-textarea { min-height: 140px; resize: vertical; }
.submit-btn { width: 100%; padding: 0.97rem; background: var(--accent-cyan); color: var(--bg-primary); border: none; border-radius: 6.3px; font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.6px; cursor: pointer; transition: all 0.3s ease; font-family: 'JetBrains Mono', monospace; display: flex; align-items: center; justify-content: center; gap: 0.6rem; }
.submit-btn:hover { box-shadow: 0 0 40px rgba(0,217,255,0.5); transform: translateY(-3px); }
.submit-btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }

/* Contact Form Wrapper & Transitions */
.contact-form-wrapper {
    position: relative;
    min-height: 400px; /* Sane minimum height to prevent layout shift */
    display: flex;
    flex-direction: column;
}

#contact-form.hidden { display: none; }

/* Form Success State */
.form-success-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    padding: 2.5rem 0; /* py-10 */
    animation: successFadeIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes successFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.success-icon-box {
    width: 4rem; /* w-16 */
    height: 4rem; /* h-16 */
    background: rgba(0, 245, 255, 0.05);
    border: 2px solid #00f5ff; /* Cyan-400 */
    border-radius: 9999px; /* rounded-full */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem; /* mb-4 */
    box-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
    color: #00f5ff;
}

.success-send-icon { width: 14px; height: 14px; }

.success-heading {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem; /* text-xl */
    font-weight: 600; /* semibold */
    color: #ffffff;
    margin-bottom: 0.5rem; /* mb-2 */
}

.success-description {
    color: #9ca3af; /* Gray-400 */
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem; /* text-sm */
    max-width: 300px;
    line-height: 1.5;
}

.send-another-btn {
    margin-top: 1.5rem; /* mt-6 */
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0, 245, 255, 0.4); /* border-cyan-400/40 */
    color: #00f5ff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem; /* text-xs */
    padding-bottom: 2px;
    cursor: pointer;
    transition: all 300ms ease;
}

.send-another-btn:hover {
    border-bottom-color: #00f5ff; /* Full opacity */
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
}

.contact-form-col { position: relative; }

/* Spinning Loader Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}
.btn-loader {
    animation: spin 1s linear infinite;
}

/* ============================================================
   FOOTER — fully transparent background
   ============================================================ */
footer {
    position: relative;
    padding: 1.75rem 5%;
    text-align: center;
    background: transparent;
    border-top: none;
    overflow: hidden;
}
footer p {
    position: relative;
    color: #8b97a8;
    font-size: 0.84rem;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4px;
    font-weight: 400;
    opacity: 0.78;
}

/* ============================================================
   TOOL POPUP — Glassmorphism + theme-aware
   ============================================================ */
.tool-popup-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.25s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.tool-popup-box {
    --tp-accent: #00d9ff;
    --tp-accent-rgb: 0, 217, 255;
    background:
        linear-gradient(135deg,
            rgba(var(--tp-accent-rgb), 0.08) 0%,
            rgba(15, 22, 35, 0.55) 50%,
            rgba(15, 22, 35, 0.65) 100%);
    border: 1px solid rgba(var(--tp-accent-rgb), 0.35);
    border-radius: 18px;
    padding: 2rem 2rem 1.75rem;
    max-width: 380px;
    width: 90%;
    position: relative;
    box-shadow:
        0 0 60px rgba(var(--tp-accent-rgb), 0.18),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 1px 0 rgba(255,255,255,0.08);
    animation: slideUp 0.25s ease;
    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);
}

.tool-popup-close {
    position: absolute;
    top: 0.75rem; right: 0.9rem;
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.2rem 0.4rem;
}
.tool-popup-close:hover {
    color: var(--tp-accent);
    transform: scale(1.2);
}

.tool-popup-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(var(--tp-accent-rgb), 0.1);
    border: 1px solid rgba(var(--tp-accent-rgb), 0.3);
    padding: 9px;
}
.tool-popup-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.tool-popup-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    color: var(--tp-accent);
    margin-bottom: 0.55rem;
    text-align: center;
    text-shadow: 0 0 12px rgba(var(--tp-accent-rgb), 0.3);
}
.tool-popup-desc {
    font-family: 'Poppins', sans-serif;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.72;
    text-align: center;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(30px) scale(0.9); } to { opacity: 1; transform: translateY(0) scale(1); } }

@media (max-width: 1024px) { .engagement-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 968px) {
    .about-content, .contact-content { grid-template-columns: 1fr; gap: 2rem; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .skills-grid { grid-template-columns: 1fr; }
    
    /* Social Links - Paired layout */
    .social-links { flex-direction: row; gap: 0.65rem; }
    
    /* Form Layout Fixes */
    .form-row { flex-direction: column; gap: 1rem; align-items: stretch; }
    
    /* Layout Spacing Adjustments */
    section { padding: 4rem 3%; }
    #engagement { padding-bottom: 1rem !important; }
    .tech-arsenal { padding-bottom: 1rem !important; }
    
    /* Project Card Behavior - Prevent shifting */
    .project-card:hover, .project-card:active, .project-card:focus { transform: none !important; }
    
    /* Disable flip on mobile - show only front card */
    .code-flip-container { cursor: default; perspective: none; }
    .code-flip-inner { transform: none !important; transition: none !important; }
    .code-window-back { display: none !important; }
    
    /* Who Am I - hide secondary paragraphs */
    .about-body { display: none !important; }
    .about-lead { margin-bottom: 2rem !important; }
    
    /* Optimize Developer Methodologies (Engagement & Offer sections) */
    /* ── Stat cards: all 4 uniform on mobile ── */
    .engagement-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 0.9rem !important; }
    .stat-card {
        padding: 1.25rem 0.9rem !important;
        border-radius: 14px !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }
    .stat-icon-wrap { width: 38px !important; height: 38px !important; margin-bottom: 0.7rem !important; border-radius: 10px !important; }
    .stat-icon-wrap svg { width: 18px !important; height: 18px !important; }
    .stat-number { font-size: 1.9rem !important; }
    .stat-suffix { font-size: 1.2rem !important; }
    .stat-suffix-text { font-size: 0.72rem !important; }
    .stat-label { font-size: 0.72rem !important; margin-bottom: 0.6rem !important; }
    .stat-bar-wrap { width: 100% !important; }
    
    .offer-card-inner { padding: 1.5rem !important; }
    .offer-desc { font-size: 0.85rem !important; line-height: 1.5 !important; margin-bottom: 1rem !important; }
    .offer-title { font-size: 1.15rem !important; }
}
@media (max-width: 768px) {
    .hero-subtitle { font-size: 11.8px; }
    .hero-subtitle-container { padding: 0.55rem 1.08rem; }
}
@media (max-width: 640px) {
    .logo { font-size: 1.1rem; }
    .cta-buttons { flex-direction: column; }
    .btn { width: 100%; }
    .engagement-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
    .projects-grid { grid-template-columns: 1fr; }
    #project-search::placeholder { font-size: 0.71rem; }
}
/* All nav-link visibility is handled in base.css mobile block */
