/*
Theme Name: Dev Portfolio
Theme URI: https://example.com
Author: Your Name
Author URI: https://example.com
Description: A clean, minimal portfolio theme for front-end developers.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dev-portfolio
Tags: portfolio, minimal, one-page, developer
*/

/* ===========================
   CSS RESET & VARIABLES
   =========================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --color-bg:       #f5f4ff;
    --color-surface:  #ffffff;
    --color-border:   #e2dff8;
    --color-accent:   #6040e8;
    --color-accent2:  #00a885;
    --color-text:     #1a1535;
    --color-muted:    #6b6899;
    --font-sans:      'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:      'JetBrains Mono', 'Fira Code', monospace;
    --radius:         12px;
    --max-width:      1100px;
    --transition:     0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===========================
   BASE
   =========================== */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition);
}
a:hover { color: var(--color-accent2); }

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

ul { list-style: none; }

/* ===========================
   TYPOGRAPHY
   =========================== */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
	font-size: clamp(2.2rem, 6vw, 4rem); 
}

h2 { 
	font-size: clamp(1.8rem, 3.5vw, 2.8rem); 
}

h3 { 
	font-size: 1.25rem; 
}

p { color: var(--color-muted); line-height: 1.8; }

.section-label {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    display: block;
    margin-bottom: 0.75rem;
}

/* ===========================
   LAYOUT
   =========================== */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section { padding: 6rem 0; }

/* ===========================
   NAVIGATION
   =========================== */
#site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: background var(--transition), border-bottom var(--transition);
}

#site-header.scrolled {
    background: rgba(245, 244, 255, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 2px 20px rgba(96, 64, 232, 0.06);
}

#site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text) !important;
}

.site-logo span { color: var(--color-accent); }

#primary-nav ul {
    display: flex;
    gap: 2rem;
}

#primary-nav a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-muted);
    transition: color var(--transition);
}

#primary-nav a:hover { color: var(--color-text); }

.nav-cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: background var(--transition) !important;
}
.nav-cta:hover { background: var(--color-accent2) !important; color: var(--color-bg) !important; }

/* ===========================
   HERO SECTION
   =========================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 5rem;
    background: linear-gradient(135deg, #f5f4ff 0%, #ede9fe 50%, #e0f2fe 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-accent2);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 2rem;
    height: 2px;
    background: var(--color-accent2);
}

.hero-title { margin-bottom: 1.5rem; }

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover {
    background: #7456f0;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 64, 232, 0.28);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.code-window {
    background: #1e1b4b;
    border: 1px solid #312e81;
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 24px 60px rgba(96, 64, 232, 0.2);
}

.code-header {
    background: #312e81;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-red   { background: #ff5f57; }
.dot-yellow{ background: #febc2e; }
.dot-green { background: #28c840; }

.code-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.9;
    color: #e2e8f0;
}

.code-comment { color: #6b7280; }
.code-key     { color: #a78bfa; }
.code-str     { color: #34d399; }
.code-num     { color: #fbbf24; }
.code-bracket { color: #9ca3af; }

/* Typing cursor */
.code-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: #a78bfa;
    vertical-align: text-bottom;
    margin-left: 1px;
    border-radius: 1px;
    animation: cursorBlink 0.9s step-end infinite;
}

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

/* Each rendered line */
.code-line {
    display: block;
    min-height: 1.9em;
    white-space: pre;
}

/* ===========================
   SKILLS SECTION
   =========================== */
#skills { background: var(--color-surface); }

/* ── Expand wrapper — always visible ── */
.skills-grid-wrap {
    margin-top: 0;
}

.skills-grid-wrap > .skills-grid { min-height: 0; }

/* ── Organic grid ──
   Not a clean uniform grid — cards are nudged, rotated, and sized
   differently via nth-child rules to feel hand-placed.
   =========================== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: auto;
    gap: 1rem;
    padding: 1.5rem 0.5rem 2rem;
    align-items: start;
}

/* ── Base card ── */
.skill-card {
    position: relative;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    cursor: pointer;
    overflow: hidden;
    grid-column: span 2;

    /* entrance */
    opacity: 0;
    translate: 0 20px;
    transition:
        opacity 0.45s ease calc(var(--i,0) * 35ms),
        translate 0.45s ease calc(var(--i,0) * 35ms),
        rotate var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);

    /* Subtle organic rotation per card — varies by position */
    rotate: var(--card-rot, 0deg);
}

/* Stagger entrance: triggered by IntersectionObserver adding .visible */
.skills-grid-wrap .skill-card {
    opacity: 1;
    translate: 0 0;
}

.skill-card.entering {
    opacity: 0;
    translate: 0 20px;
}

.skill-card.visible {
    opacity: 1 !important;
    translate: 0 0 !important;
}

/* Organic size + rotation nudges */
.skill-card:nth-child(1)  { --card-rot: -1.8deg; grid-column: span 2; }
.skill-card:nth-child(2)  { --card-rot:  1.2deg; grid-column: span 2; margin-top: 1rem; }
.skill-card:nth-child(3)  { --card-rot: -0.6deg; grid-column: span 2; }
.skill-card:nth-child(4)  { --card-rot:  2deg;   grid-column: span 3; margin-top: -0.5rem; }
.skill-card:nth-child(5)  { --card-rot: -1.4deg; grid-column: span 3; }
.skill-card:nth-child(6)  { --card-rot:  0.8deg; grid-column: span 2; margin-top: 0.75rem; }
.skill-card:nth-child(7)  { --card-rot: -1deg;   grid-column: span 2; }
.skill-card:nth-child(8)  { --card-rot:  1.6deg; grid-column: span 2; margin-top: 0.5rem; }
.skill-card:nth-child(9)  { --card-rot: -0.9deg; grid-column: span 3; }
.skill-card:nth-child(10) { --card-rot:  1.1deg; grid-column: span 3; margin-top: -0.25rem; }
.skill-card:nth-child(11) { --card-rot: -1.5deg; grid-column: span 2; margin-top: 0.6rem; }
.skill-card:nth-child(12) { --card-rot:  0.7deg; grid-column: span 4; }

/* Hover — lift, straighten, highlight */
.skill-card:not(.open):hover {
    rotate: 0deg;
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px rgba(96,64,232,0.14);
    translate: 0 -4px;
}

/* Open state — fully straighten, stronger glow */
.skill-card.open {
    rotate: 0deg;
    border-color: var(--color-accent);
    box-shadow: 0 14px 40px rgba(96,64,232,0.2);
    z-index: 2;
}

/* ── Front ── */
.skill-card-front {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 1.25rem;
}

.skill-icon  { font-size: 1.8rem; flex-shrink: 0; }
.skill-name  { font-size: 0.88rem; font-weight: 700; color: var(--color-text); }
.skill-level {
    font-size: 0.7rem;
    color: var(--color-accent2);
    font-family: var(--font-mono);
}
.skill-yrs {
    font-size: 0.66rem;
    color: var(--color-muted);
    font-family: var(--font-mono);
}

/* ── Reveal panel (slides down) ── */
.skill-card-back {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 1px solid transparent;
}

.skill-card.open .skill-card-back {
    max-height: 200px;
    border-top-color: var(--color-border);
}

.skill-back-inner {
    padding: 0.85rem 1.25rem 1.1rem;
}

.skill-back-desc {
    font-size: 0.78rem;
    line-height: 1.55;
    color: var(--color-muted);
    margin-bottom: 0.7rem;
}

/* Proficiency bar */
.skill-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.skill-bar-track {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 10px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
    transition: width 0.65s cubic-bezier(0.4, 0, 0.2, 1) 0.12s;
}

.skill-card.open .skill-bar-fill { width: var(--pct); }

.skill-bar-pct {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--color-accent);
    min-width: 2.2rem;
    text-align: right;
}

/* Back tags */
.skill-back-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.skill-back-tags .tag { font-size: 0.62rem; padding: 0.15rem 0.45rem; }

/* ── Responsive: flatten organic layout on small screens ── */
@media (max-width: 700px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .skill-card,
    .skill-card:nth-child(n) {
        grid-column: span 1 !important;
        margin-top: 0 !important;
        --card-rot: 0deg;
    }
}

/* ===========================
   PROJECTS SECTION
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

#projects {}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.project-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    border-color: var(--color-accent);
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(96, 64, 232, 0.14);
}

.project-thumbnail {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent2) 100%);
    position: relative;
    overflow: hidden;
}

.project-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.project-thumbnail-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    opacity: 0.4;
}

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

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    background: rgba(96, 64, 232, 0.08);
    color: var(--color-accent);
    border: 1px solid rgba(96, 64, 232, 0.2);
}

.project-title { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--color-text); }
.project-desc  { font-size: 0.9rem; margin-bottom: 1.25rem; flex: 1; }

.project-links { display: flex; gap: 0.75rem; }

.project-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: color var(--transition);
}
.project-link:hover { color: var(--color-accent2); }

/* ===========================
   ABOUT SECTION
   =========================== */
#about { background: var(--color-surface); }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
}

/* ── Photo wrapper — controls outer positioning ── */
.about-photo {
    position: relative;
    /* Give room for overflowing badges and corners */
    padding: 14px;
    margin: -14px;
}

/* ── Photo frame — the square containing block ── */
.photo-frame {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: var(--radius);
    cursor: crosshair;
    overflow: visible;
    transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photo-frame:hover {
    transform: scale(1.06);
}

/* ── Inner — fills the frame, clipped for image/overlays ── */
.photo-inner {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    overflow: hidden; /* clips image, glitch, scanlines, terminal */
}

/* ── Actual image / placeholder ── */
.photo-img-wrap {
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
}

.photo-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
}

/* ── Glitch RGB channel layers ── */
.photo-glitch-r,
.photo-glitch-b {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
}

.photo-glitch-r { mix-blend-mode: screen; background-color: rgba(255,0,60,0.55); }
.photo-glitch-b { mix-blend-mode: screen; background-color: rgba(0,60,255,0.55); }

/* ── Scanlines ── */
.photo-scanlines {
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0,0,0,0.1) 2px,
        rgba(0,0,0,0.1) 4px
    );
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ── Circuit corner brackets — on .photo-frame so they overflow .photo-inner ── */
.photo-corner {
    position: absolute;
    z-index: 10;
    width: 20px; height: 20px;
    border-color: #fff;
    border-style: solid;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.photo-corner--tl { top:    0; left:    0; border-width: 2px 0 0 2px; border-radius: 4px 0 0 0; }
.photo-corner--tr { top:    0; right:   0; border-width: 2px 2px 0 0; border-radius: 0 4px 0 0; }
.photo-corner--bl { bottom: 0; left:    0; border-width: 0 0 2px 2px; border-radius: 0 0 0 4px; }
.photo-corner--br { bottom: 0; right:   0; border-width: 0 2px 2px 0; border-radius: 0 0 4px 0; }

.photo-frame:hover .photo-corner--tl { 
	top: -8px; 
	left: -8px; 
	border-color: #1a56db60;
}

.photo-frame:hover .photo-corner--tr { 
	top: -8px; 
	right: -8px; 
	border-color: #1a56db60;
}

.photo-frame:hover .photo-corner--bl { 
	bottom: -8px; 
	left: -8px; 
	border-color: #1a56db60;	
}

.photo-frame:hover .photo-corner--br { 
	bottom: -8px; 
	right: -8px; 
	border-color: #1a56db60;
}

/* ── Terminal overlay ── */
.photo-terminal {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 10, 18, 0.93);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(0, 212, 100, 0.3);
    border-radius: 0 0 var(--radius) var(--radius);
    transform: translateY(100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.photo-frame:hover .photo-terminal { transform: translateY(0); }

.photo-terminal-bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.photo-terminal-title {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: #6b7280;
    margin-left: 0.3rem;
}

.photo-terminal-body {
    padding: 0.6rem 0.75rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.7;
    color: #00d46a;
    min-height: 4.5rem;
}

.photo-terminal-body .t-prompt { color: #7c5cfc; }
.photo-terminal-body .t-cmd    { color: #e2e8f0; }
.photo-terminal-body .t-out    { color: #00d46a; }
.photo-terminal-body .t-warn   { color: #fbbf24; }
.photo-terminal-body .t-cursor {
    display: inline-block;
    width: 6px; height: 0.8em;
    background: #00d46a;
    vertical-align: middle;
    animation: cursorBlink 0.9s step-end infinite;
    margin-left: 2px;
}

/* ── Floating tech badges — on .photo-frame so they can overflow ── */
.photo-badge {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    white-space: nowrap;
    z-index: 10;
}

.photo-badge--1 { top: 10%;    left: -22%;  background: var(--color-accent);  transition-delay: 0.04s; }
.photo-badge--2 { top: 32%;    right: -20%; background: #0ea5e9;               transition-delay: 0.09s; }
.photo-badge--3 { bottom: 34%; left: -22%;  background: #8b5cf6;               transition-delay: 0.14s; }
.photo-badge--4 { bottom: 12%; right: -18%; background: #f97316;               transition-delay: 0.19s; }
.photo-badge--5 { top: 54%;    left: -18%;  background: #eab308; color: #1a1535; transition-delay: 0.24s; }

.photo-frame:hover .photo-badge {
    opacity: 1;
    transform: scale(1);
}

/* ── Status badge ── */
.photo-status {
    position: absolute;
    top: -12px; right: 10px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 0.25rem 0.7rem 0.25rem 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text);
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    white-space: nowrap;
}

.photo-status-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: statusPulse 2s ease infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
    50%       { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ── Glitch animations ── */
@keyframes glitchR {
    0%,100% { clip-path: inset(0 0 92% 0);  transform: translate(-3px, 0);  opacity: 0.8; }
    20%     { clip-path: inset(30% 0 50% 0); transform: translate(3px, 0); }
    40%     { clip-path: inset(60% 0 20% 0); transform: translate(-2px, 1px); }
    60%     { clip-path: inset(10% 0 75% 0); transform: translate(4px, -1px); }
    80%     { clip-path: inset(80% 0 5% 0);  transform: translate(-3px, 0); }
}

@keyframes glitchB {
    0%,100% { clip-path: inset(85% 0 0 0);  transform: translate(3px, 0);  opacity: 0.8; }
    25%     { clip-path: inset(20% 0 60% 0); transform: translate(-4px, 0); }
    50%     { clip-path: inset(50% 0 30% 0); transform: translate(2px, 1px); }
    75%     { clip-path: inset(5% 0 80% 0);  transform: translate(-2px, -1px); }
}

.photo-frame:hover .photo-scanlines { opacity: 1; }

.photo-frame:hover .photo-glitch-r {
    opacity: 1;
    animation: glitchR 0.4s steps(1) infinite;
}

.photo-frame:hover .photo-glitch-b {
    opacity: 1;
    animation: glitchB 0.4s steps(1) 0.1s infinite;
}

.about-content h2 { 
	margin-bottom: 1.25rem; 
}

.about-content p  { 
	margin-bottom: 1rem;
	color: #000;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    background: linear-gradient(135deg, var(--color-accent), var(--color-accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--color-muted);
}

/* ===========================
   CONTACT SECTION
   =========================== */
#contact { text-align: center; }

.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-wrapper h2 { margin-bottom: 1rem; }
.contact-wrapper p  { margin-bottom: 2.5rem; }

.contact-form { text-align: left; }

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(96, 64, 232, 0.12);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.contact-socials {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 1.2rem;
    transition: all var(--transition);
    text-decoration: none;
}

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

/* ===========================
   FOOTER
   =========================== */
#site-footer {
    padding: 2rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

#site-footer p {
    font-size: 0.85rem;
    color: var(--color-muted);
}

#site-footer a { color: var(--color-accent); }

/* ===========================
   SCROLL INDICATOR
   =========================== */
.scroll-progress {
    position: fixed;
    top: 0; left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent2));
    z-index: 200;
    transition: width 0.1s;
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 900px) {
    .hero-grid  { grid-template-columns: 1fr; }
    .about-grid { grid-template-columns: 1fr; }
    .about-photo { max-width: 280px; margin: 0 auto; }
    .hero-visual { display: none; }
}

@media (max-width: 640px) {
    section { padding: 4rem 0; }
    #primary-nav .nav-items { display: none; }
    .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ===========================
   WP ADMIN BAR — sticky header fix
   WordPress injects #wpadminbar at 32px (desktop) / 46px (mobile).
   We push #site-header down so it doesn't sit under or overlap it.
   =========================== */
body.admin-bar #site-header {
    top: 32px;
}

/* WP forces html margin-top on admin-bar pages; compensate scroll-progress too */
body.admin-bar .scroll-progress {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #site-header {
        top: 46px;
    }
    body.admin-bar .scroll-progress {
        top: 46px;
    }
}

/* On very small screens WP hides the admin bar from the viewport flow */
@media screen and (max-width: 600px) {
    body.admin-bar #site-header {
        top: 0;
    }
    body.admin-bar .scroll-progress {
        top: 0;
    }
}

/* ===========================
   COLOR SCHEME — White & Blue
   Apply class="scheme-blue" to <body> or swap :root values.
   =========================== */
body.scheme-blue,
.scheme-blue {
    --color-bg:       #ffffff;
    --color-surface:  #f0f6ff;
    --color-border:   #c7deff;
    --color-accent:   #1a56db;
    --color-accent2:  #0ea5e9;
    --color-text:     #0f172a;
    --color-muted:    #4b6383;
}

/* Blue scheme: hero gradient */
body.scheme-blue #hero {
    background: linear-gradient(135deg, #ffffff 0%, #e8f1ff 50%, #dbeafe 100%);
}

/* Blue scheme: scrolled header */
body.scheme-blue #site-header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 2px 20px rgba(26, 86, 219, 0.08);
    border-bottom-color: #c7deff;
}

/* Blue scheme: code window — keep a contrasting dark navy */
body.scheme-blue .code-window {
    background: #0f172a;
    border-color: #1e3a5f;
    box-shadow: 0 24px 60px rgba(26, 86, 219, 0.18);
}

body.scheme-blue .code-header { background: #1e3a5f; }

/* Blue scheme: skill / project card hovers */
body.scheme-blue .skill-card:hover,
body.scheme-blue .project-card:hover {
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.14);
}

/* Blue scheme: tag chips */
body.scheme-blue .tag {
    background: rgba(26, 86, 219, 0.07);
    border-color: rgba(26, 86, 219, 0.2);
}

/* Blue scheme: btn-primary hover */
body.scheme-blue .btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 8px 24px rgba(26, 86, 219, 0.28);
}

/* Blue scheme: form focus ring */
body.scheme-blue .form-group input:focus,
body.scheme-blue .form-group textarea:focus {
    box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.12);
}

/* ===========================
   WORDPRESS ELEMENTS
   =========================== */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.85rem; color: var(--color-muted); text-align: center; margin-top: 0.5rem; }
.aligncenter { margin: 0 auto; display: block; }
.alignleft { float: left; margin-right: 1.5rem; }
.alignright { float: right; margin-left: 1.5rem; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }


/* Contact Form 7 — match theme style */

.wpcf7 .wpcf7-form p {
    margin-bottom: 1.25rem;
}

.wpcf7 .wpcf7-form label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.4rem;
	text-align: left;
}

.wpcf7 .wpcf7-form label span {
	margin-top: 8px;
	display: block;
}

.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 textarea {
    width: 100%;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 0.85rem 1rem;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: border-color var(--transition);
    outline: none;
    box-shadow: none;
    -webkit-appearance: none;
}

.wpcf7 input[type="text"]:focus,
.wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus,
.wpcf7 input[type="url"]:focus,
.wpcf7 textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(96, 64, 232, 0.12);
}

.wpcf7 textarea {
    resize: vertical;
    min-height: 140px;
}

.wpcf7 input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 0.85rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    -webkit-appearance: none;
}

.wpcf7 input[type="submit"]:hover {
    background: #7456f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(96, 64, 232, 0.28);
}

/* Validation messages */
.wpcf7 .wpcf7-not-valid-tip {
    font-size: 0.75rem;
    color: #ff6b6b;
    margin-top: 0.3rem;
    display: block;
}

.wpcf7 .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    border: none !important;
}

.wpcf7 .wpcf7-mail-sent-ok {
    background: rgba(0, 212, 170, 0.12);
    color: #00a885;
    border-left: 3px solid #00a885 !important;
}

.wpcf7 .wpcf7-mail-sent-ng,
.wpcf7 .wpcf7-spam-blocked,
.wpcf7 .wpcf7-validation-errors {
    background: rgba(255, 80, 80, 0.1);
    color: #ff6b6b;
    border-left: 3px solid #ff6b6b !important;
}

/* Loading spinner on submit */
.wpcf7 .wpcf7-spinner {
    display: none;
}
