/*
Theme Name: CodeCraftPro
Author: Sabbir Dewan
Description: Custom digital solutions, web development, and B2B growth theme.
Version: 1.0
Text Domain: codecraftpro
*/

/* =========================
   CSS VARIABLES & THEMES
========================= */
:root {
    /* Default Deep Tech Theme */
    --bg-deep: #030712;
    --bg-surface: #0b1221;
    --bg-card: rgba(15, 23, 42, 0.6);
    --border-color: rgba(56, 189, 248, 0.15);
    --border-hover: rgba(56, 189, 248, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --neon-cyan: #00f0ff;
    --neon-purple: #8b5cf6;
    --neon-green: #10b981;
    
    --font-ui: 'Plus Jakarta Sans', sans-serif;
    --font-code: 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Matrix Theme Override */
[data-theme="matrix"] {
    --bg-deep: #000800; --bg-surface: #001400; --bg-card: rgba(0, 20, 0, 0.6);
    --border-color: rgba(0, 255, 65, 0.15); --border-hover: rgba(0, 255, 65, 0.5);
    --text-main: #e0ffe0; --text-muted: #008f11;
    --neon-cyan: #00ff41; --neon-purple: #008f11; --neon-green: #00ff41;
}

/* Synthwave Theme Override */
[data-theme="synthwave"] {
    --bg-deep: #0f001a; --bg-surface: #1a002a; --bg-card: rgba(26, 0, 42, 0.6);
    --border-color: rgba(255, 0, 255, 0.15); --border-hover: rgba(255, 0, 255, 0.5);
    --text-main: #ffeeff; --text-muted: #b366ff;
    --neon-cyan: #00f0ff; --neon-purple: #ff00ff; --neon-green: #ff9900;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; cursor: none; }
body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 50%, rgba(0, 240, 255, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.05), transparent 25%);
    color: var(--text-main); font-family: var(--font-ui); line-height: 1.7; overflow-x: hidden;
    transition: background-color 0.5s, color 0.5s;
}

body.booting { overflow: hidden; height: 100vh; }
a { color: inherit; text-decoration: none; cursor: none; }
button { cursor: none; font-family: var(--font-ui); }
ul { list-style: none; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-cyan); }

/* =========================
   FLOATING CODING VIBE
========================= */
.floating-code-bg {
    position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.float-el {
    position: absolute; font-family: var(--font-code); font-weight: bold; opacity: 0;
    animation: floatUp linear infinite; filter: drop-shadow(0 0 5px currentColor);
    transition: color 0.5s;
}
@keyframes floatUp {
    0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
    10% { opacity: 0.15; }
    90% { opacity: 0.15; }
    100% { transform: translateY(-20vh) rotate(360deg); opacity: 0; }
}

/* =========================
   THEME SWITCHER UI
========================= */
.theme-switcher {
    position: fixed; bottom: 30px; right: 30px; z-index: 999;
    display: flex; gap: 12px; background: var(--bg-card);
    padding: 10px 15px; border-radius: 30px; border: 1px solid var(--border-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5); backdrop-filter: blur(10px);
    transition: var(--transition);
}
.theme-btn {
    width: 20px; height: 20px; border-radius: 50%; border: none; cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.theme-btn:hover { transform: scale(1.3); }
.theme-btn.default { background: #00f0ff; box-shadow: 0 0 10px rgba(0, 240, 255, 0.5); }
.theme-btn.matrix { background: #00ff41; box-shadow: 0 0 10px rgba(0, 255, 65, 0.5); }
.theme-btn.synthwave { background: #ff00ff; box-shadow: 0 0 10px rgba(255, 0, 255, 0.5); }
@media (max-width: 600px) { .theme-switcher { bottom: 20px; right: 20px; padding: 8px 12px; gap: 10px; } .theme-btn { width: 16px; height: 16px; } }

/* =========================
   ADVANCED: GLITCH EFFECT
========================= */
@keyframes glitch {
    0% { transform: translate(0) }
    20% { transform: translate(-3px, 3px) }
    40% { transform: translate(-3px, -3px) }
    60% { transform: translate(3px, 3px) }
    80% { transform: translate(3px, -3px) }
    100% { transform: translate(0) }
}
body.glitch-mode {
    animation: glitch 0.2s cubic-bezier(.25, .46, .45, .94) both infinite;
    filter: hue-rotate(90deg) contrast(150%) saturate(200%);
}
body.glitch-mode::after {
    content: ""; position: fixed; inset: 0; z-index: 99999; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(0,0,0,0.15), rgba(0,0,0,0.15) 1px, transparent 1px, transparent 2px);
}

/* =========================
   SCROLL PROGRESS BAR
========================= */
.scroll-progress-bar {
    position: fixed; top: 0; left: 0; height: 3px; background: var(--neon-cyan);
    z-index: 9999; box-shadow: 0 0 15px var(--neon-cyan); width: 0%; transition: width 0.1s ease-out;
}

/* =========================
   MODERN BOOT PRELOADER
========================= */
.boot-screen {
    position: fixed; inset: 0; background: var(--bg-deep); z-index: 10000;
    display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 20px;
    transition: opacity 0.8s ease-out, visibility 0.8s; text-align: center;
}
.boot-logo-container { margin-bottom: 30px; animation: gentlePulse 3s infinite ease-in-out; }
.boot-logo { font-size: clamp(32px, 5vw, 48px); font-weight: 800; color: white; line-height: 1; margin-bottom: 5px; }
.boot-logo span { color: var(--neon-cyan); }
.boot-logo small { display: block; color: var(--text-muted); font-size: 12px; letter-spacing: 4px; text-transform: uppercase; }
.boot-loader-bar { width: 200px; max-width: 80vw; height: 2px; background: rgba(0, 240, 255, 0.1); border-radius: 2px; position: relative; overflow: hidden; margin: 0 auto 20px; }
.boot-loader-fill { position: absolute; top: 0; left: 0; height: 100%; width: 50%; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); animation: loadingScan 1.5s infinite ease-in-out; }
.boot-text { color: var(--text-muted); font-family: var(--font-code); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

@keyframes gentlePulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes loadingScan { 0% { transform: translateX(-100%); } 100% { transform: translateX(200%); } }

/* =========================
   CUSTOM CURSOR
========================= */
.cursor-dot { width: 8px; height: 8px; background: var(--neon-cyan); border-radius: 50%; position: fixed; pointer-events: none; z-index: 9999; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, background 0.2s; }
.cursor-outline { width: 40px; height: 40px; border: 1px solid var(--neon-cyan); opacity: 0.5; border-radius: 50%; position: fixed; pointer-events: none; z-index: 9998; transform: translate(-50%, -50%); transition: width 0.2s, height 0.2s, border-color 0.2s; transition-timing-function: ease-out; }

@media (max-width: 900px) { .cursor-dot, .cursor-outline { display: none !important; } html, a, button, input { cursor: auto; } }

/* =========================
   SCROLL REVEAL & CARDS
========================= */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.tilt-card { transition: transform 0.1s ease-out; will-change: transform; transform-style: preserve-3d; }

.glow-card {
    background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 16px;
    backdrop-filter: blur(10px); position: relative; overflow: hidden; transition: var(--transition);
}
.glow-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(0, 240, 255, 0.06), transparent 40%);
    z-index: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s;
}
@media (hover: hover) and (pointer: fine) {
    .glow-card:hover::before { opacity: 1; }
    .glow-card:hover { border-color: var(--border-hover); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
    .glow-card:not(.tilt-card):hover { transform: translateY(-5px); }
}
.glow-card > * { position: relative; z-index: 1; }

/* =========================
   HEADER & NAV
========================= */
.header { position: fixed; top: 0; width: 100%; z-index: 1000; background: rgba(3, 7, 18, 0.8); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,0.05); transition: var(--transition); }
.navbar { width: 92%; max-width: 1200px; margin: auto; min-height: 80px; display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.2; position: relative; z-index: 1002;}
.logo span { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0,240,255,0.3); }
.logo small { display: block; color: var(--text-muted); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; }

.nav-links { display: flex; gap: 25px; align-items: center; }
.nav-links a { color: var(--text-muted); font-size: 13px; font-weight: 600; transition: var(--transition); }
.nav-links a:hover { color: var(--neon-cyan); text-shadow: 0 0 8px rgba(0,240,255,0.4); }
.nav-button { padding: 8px 20px; background: linear-gradient(45deg, rgba(0,240,255,0.1), rgba(139,92,246,0.1)); border: 1px solid var(--neon-cyan); border-radius: 8px; color: var(--neon-cyan) !important; box-shadow: 0 0 15px rgba(0,240,255,0.1); }
.nav-button:hover { background: var(--neon-cyan); color: var(--bg-deep) !important; box-shadow: 0 0 25px rgba(0,240,255,0.4); }
.menu-button { display: none; background: none; border: none; color: white; font-size: 28px; cursor: pointer; position: relative; z-index: 1002;}

/* =========================
   COMMON SECTIONS
========================= */
.section { width: 92%; max-width: 1200px; margin: auto; padding: 100px 0; position: relative; z-index: 2; }
.section-dark { max-width: 100%; padding: 100px 4%; background: var(--bg-surface); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); position: relative; z-index: 2; }

.section-title { margin-bottom: 50px; }
.section-title p, .eyebrow { color: var(--neon-cyan); font-family: var(--font-code); font-size: 12px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-title h2 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; line-height: 1.2; background: linear-gradient(to right, var(--text-main), var(--text-muted)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 28px; border-radius: 8px; font-weight: 600; transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.1s; letter-spacing: 0.5px; text-align: center; }
.primary-button { background: var(--neon-cyan); color: #000; box-shadow: 0 0 15px rgba(0, 240, 255, 0.3); }
.primary-button:hover { background: var(--text-main); box-shadow: 0 0 25px rgba(0, 240, 255, 0.6); }
.secondary-button { background: transparent; color: var(--text-main); border: 1px solid var(--border-color); }
.secondary-button:hover { border-color: var(--neon-cyan); color: var(--neon-cyan); background: rgba(0,240,255,0.05); }

/* =========================
   HERO & CANVAS
========================= */
.hero { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 60px; padding-top: 80px; }
.hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; opacity: 0.6; }

.hero-content { z-index: 2; position: relative; }
.hero h1 { font-size: clamp(36px, 5vw, 64px); font-weight: 800; line-height: 1.1; margin: 20px 0; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple)); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-description { font-size: 16px; color: var(--text-muted); max-width: 600px; margin-bottom: 25px; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 15px; }

.code-window { 
    border-radius: 12px; 
    overflow: hidden; 
    border: 1px solid var(--border-color); 
    background: #0f172a; 
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); 
    width: 100%;
    animation: floatingHero 4.5s ease-in-out infinite reverse; /* Added subtle reverse floating */
}
.code-header { background: #020617; padding: 12px 20px; display: flex; gap: 8px; border-bottom: 1px solid var(--border-color); }
.code-header span { width: 12px; height: 12px; border-radius: 50%; background: #334155; }
.code-header span:nth-child(1) { background: #ef4444; }
.code-header span:nth-child(2) { background: #eab308; }
.code-header span:nth-child(3) { background: #22c55e; }
.code-window pre { 
    padding: 30px; /* Increased padding */
    font-family: var(--font-code); 
    font-size: 15px; /* Increased font size */
    color: #cbd5e1; 
    overflow-x: auto; 
    margin: 0;
}
.code-window .keyword { color: var(--neon-purple); }
.code-window .string { color: var(--neon-green); }
.code-window .property { color: var(--neon-cyan); }

.terminal-typing { 
    font-family: var(--font-code); 
    background: rgba(2, 6, 23, 0.8); 
    border: 1px solid var(--border-color); 
    border-left: 3px solid var(--neon-cyan); 
    padding: 16px 28px; /* Increased padding */
    border-radius: 8px; 
    display: inline-flex; 
    align-items: center; 
    margin-bottom: 30px; 
    font-size: 16px; /* Increased font size */
    color: var(--text-main); 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); 
    max-width: 100%; 
    overflow: hidden; 
    white-space: nowrap;
    animation: floatingHero 3.5s ease-in-out infinite; /* Added floating animation */
}
.terminal-sign { color: var(--neon-green); margin-right: 10px; font-weight: bold; }
.typing-cursor { color: var(--neon-cyan); margin-left: 5px; animation: blink 1s step-end infinite; }

/* =========================
   ABOUT & SERVICES
========================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-text h3 { font-size: clamp(24px, 3vw, 28px); line-height: 1.3; margin-bottom: 20px; }
.about-text p { color: var(--text-muted); margin-bottom: 15px; font-size: 16px; }
.about-boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-box { padding: 25px; text-align: center; display: flex; flex-direction: column; justify-content: center; min-height: 120px;}
.about-box strong { display: block; color: var(--neon-cyan); font-size: clamp(22px, 3vw, 28px); font-family: var(--font-code); margin-bottom: 5px;}
.about-box span { color: var(--text-muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; }

.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; }
.service-card { padding: 35px 25px; }
.service-card .icon { font-size: 36px; margin-bottom: 20px; display: inline-block; filter: drop-shadow(0 0 10px rgba(0,240,255,0.2)); }
.service-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.service-card p { color: var(--text-muted); font-size: 15px; }

/* =========================
   PROCESS 
========================= */
.process-intro { max-width: 720px; margin-bottom: 40px; color: var(--text-muted); font-size: 16px; }
.process-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }
.process-card { padding: 30px 20px; text-align: center; }
.process-number { font-family: var(--font-code); color: rgba(0,240,255,0.15); font-size: 40px; font-weight: 800; position: absolute; top: 10px; right: 20px; }
.process-icon { font-size: 32px; margin-bottom: 20px; color: var(--neon-cyan); }

.developer-badge { display: inline-flex; align-items: center; justify-content: center; gap: 15px; padding: 15px 25px; background: rgba(16, 185, 129, 0.05); border: 1px solid rgba(16, 185, 129, 0.2); border-radius: 50px; margin: 50px auto 0; flex-wrap: wrap;}
.status-dot { width: 12px; height: 12px; background: var(--neon-green); border-radius: 50%; box-shadow: 0 0 15px var(--neon-green); animation: pulse 2s infinite; flex-shrink: 0;}

/* =========================
   AI TERMINAL
========================= */
.terminal-container { border-radius: 12px; overflow: hidden; border: 1px solid var(--border-color); background: #020617; box-shadow: 0 20px 50px rgba(0,0,0,0.5), inset 0 0 40px rgba(0,240,255,0.02); position: relative; max-width: 950px; margin: auto; width: 100%;}
.terminal-container::after { content: " "; display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0; background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06)); z-index: 2; background-size: 100% 4px, 3px 100%; pointer-events: none; }
.terminal-top { background: #0f172a; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-color); }

.terminal-screen { padding: 25px 25px 15px 25px; font-family: var(--font-code); color: var(--text-main); min-height: 300px; max-height: 500px; overflow-y: auto; position: relative; z-index: 1; display: flex; flex-direction: column; gap: 15px; }
.chat-line { line-height: 1.6; font-size: 13px; animation: fadeIn 0.3s; word-wrap: break-word;}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to {opacity:1; transform: translateY(0);}}
.chat-line.user { color: var(--text-main); }
.chat-line.user span.prompt { color: var(--neon-green); margin-right: 8px; font-weight: bold;}
.chat-line.ai { color: #94a3b8; padding-left: 15px; border-left: 2px solid rgba(0, 240, 255, 0.3); margin-left: 5px; }
.chat-line.ai strong { color: var(--neon-cyan); }
.chat-line.error { color: #ef4444; }
.chat-line.loading { color: var(--neon-purple); font-style: italic; animation: pulseLoading 1.5s infinite;}

.terminal-input-area { display: flex; align-items: center; padding: 0 25px 25px 25px; position: relative; z-index: 1; font-family: var(--font-code); font-size: 13px; flex-wrap: wrap; gap: 10px;}
.terminal-input-prompt { color: var(--neon-green); font-weight: bold; white-space: nowrap; }
.terminal-input { flex: 1; min-width: 150px; background: transparent; border: none; color: var(--text-main); font-family: var(--font-code); font-size: 13px; outline: none; }

.terminal-buttons { display: flex; flex-wrap: wrap; gap: 8px; padding: 15px 20px; background: #0b1221; border-top: 1px solid var(--border-color); position: relative; z-index: 3; }
.terminal-button { background: transparent; border: 1px solid #334155; color: var(--text-muted); padding: 8px 14px; border-radius: 6px; font-family: var(--font-code); font-size: 12px; transition: var(--transition); cursor: pointer; }
.terminal-button:hover, .terminal-button.active { background: rgba(0,240,255,0.1); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.2); }

/* =========================
   CODE TO WEBSITE (LAB)
========================= */
.code-preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px;}
.showcase-editor { border-radius: 12px; overflow: hidden; background: #07111c; border: 1px solid var(--border-color); box-shadow: 0 25px 70px rgba(0,0,0,0.35); width: 100%;}
.editor-header { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #0e1c2b; border-bottom: 1px solid #243e57; flex-wrap: wrap; gap: 10px;}
.editor-tabs { display: flex; gap: 6px; flex-wrap: wrap;}
.editor-tab { padding: 6px 12px; color: #6e879e; font-family: var(--font-code); font-size: 12px; border-radius: 6px; }
.editor-tab.active { color: var(--text-main); background: #13263a; }
.editor-status { color: var(--neon-green); font-family: var(--font-code); font-size: 11px; }
.editor-body { display: flex; padding: 20px 0; min-height: 250px;}
.line-numbers { padding: 0 10px; display: flex; flex-direction: column; color: #42576b; text-align: right; font-family: var(--font-code); font-size: 12px; line-height: 1.6; border-right: 1px solid #1d3348; user-select: none;}

.showcase-code-container { margin: 0; padding: 0 15px; font-family: var(--font-code); font-size: 12px; line-height: 1.6; color: #a9bfd1; overflow-x: auto; width: 100%;}
.tag { color: var(--neon-purple); } .attribute { color: var(--neon-cyan); } .value { color: var(--neon-green); } .text { color: #d4dee7; }

.preview-browser { background: #0f172a; border: 1px solid var(--border-color); border-radius: 12px; overflow: hidden; transform: perspective(1000px) rotateY(-4deg); transition: transform 0.4s ease; box-shadow: 0 25px 65px rgba(0,0,0,0.5); width: 100%;}
@media (hover: hover) and (pointer: fine) {
    .code-preview-grid:hover .preview-browser { transform: perspective(1000px) rotateY(0deg) translateY(-8px); }
}
.browser-top { height: 35px; padding: 0 15px; display: flex; align-items: center; gap: 10px; background: #020617; border-bottom: 1px solid var(--border-color); }
.browser-dots span { display: inline-block; width: 10px; height: 10px; background: #334155; border-radius: 50%; margin-right: 4px;}
.browser-address { flex: 1; padding: 4px 12px; color: #64748b; background: #0f172a; border-radius: 4px; font-size: 11px; font-family: var(--font-code); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
.preview-content { padding: 40px 20px; background: radial-gradient(circle at 80% 15%, rgba(0,240,255,0.1), transparent 50%), var(--bg-surface); min-height: 250px; opacity: 0; transition: opacity 0.5s; display: flex; flex-direction: column; justify-content: center;}
.preview-content.loaded { opacity: 1; }
.preview-content h3 { font-size: clamp(24px, 4vw, 32px); line-height: 1.2; margin: 15px 0; }
.preview-content h3 span { color: var(--neon-cyan); }

/* =========================
   PORTFOLIO, EXP & MODAL
========================= */
.resume-card { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 30px; margin-bottom: 20px; align-items: start; }
.resume-date { color: var(--neon-cyan); font-family: var(--font-code); font-size: 13px; font-weight: bold; }
.resume-details h3 { font-size: 22px; margin: 5px 0 10px; }
.resume-details h4 { color: var(--text-muted); font-size: 15px; font-weight: 500; margin-bottom: 15px; }
.resume-details ul { padding-left: 20px; color: #b8c8d8; margin-top: 15px; list-style-type: disc;}

.skills-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 25px; }
.skill-group { padding: 30px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top:15px; }
.tags span { padding: 6px 14px; color: var(--text-main); background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 30px; font-size: 12px; transition: var(--transition); }
@media (hover: hover) and (pointer: fine) {
    .tags span:hover { background: rgba(0,240,255,0.1); border-color: var(--neon-cyan); color: var(--neon-cyan); box-shadow: 0 0 10px rgba(0,240,255,0.2); }
}

.project-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; justify-content: center;}
.project-filter-button { background: var(--bg-deep); border: 1px solid var(--border-color); color: var(--text-muted); padding: 8px 18px; border-radius: 30px; font-family: var(--font-code); font-size: 12px; transition: var(--transition); cursor: pointer;}
.project-filter-button:hover, .project-filter-button.active { background: var(--neon-cyan); color: var(--bg-deep); border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0,240,255,0.4); }

.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.project-card { display: flex; flex-direction: column; }
.project-image { height: 180px; background: linear-gradient(135deg, #0f172a, #020617); display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--border-color); }
.project-number { font-family: var(--font-code); font-size: 24px; color: rgba(0,240,255,0.5); font-weight: bold; }
.project-content { padding: 25px; flex-grow: 1; display: flex; flex-direction: column; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; margin-top:10px; }
.tech-tags span { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 4px 8px; border-radius: 4px; font-size: 11px; font-family: var(--font-code); color: var(--text-muted); }
.project-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap;}
.case-study-button { background: rgba(0,240,255,0.1); color: var(--neon-cyan); border: 1px solid var(--neon-cyan); padding: 8px 14px; border-radius: 6px; font-size: 12px; font-weight: 600; transition: var(--transition); cursor: pointer;}
.case-study-button:hover { background: var(--neon-cyan); color: var(--bg-deep); }

.case-modal { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; padding: 15px; }
.case-modal.open { display: flex; }
.case-modal-overlay { position: absolute; inset: 0; background: rgba(2, 6, 23, 0.9); backdrop-filter: blur(8px); }
.case-modal-box { position: relative; width: 100%; max-width: 900px; max-height: 95vh; overflow-y: auto; background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 12px; padding: 30px; z-index: 1; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes modalSlideUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }
.case-close { position: absolute; top: 15px; right: 15px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: white; width: 36px; height: 36px; border-radius: 8px; font-size: 20px; display: flex; align-items: center; justify-content: center; transition: var(--transition); cursor: pointer; }
.case-close:hover { background: var(--neon-purple); border-color: var(--neon-purple); transform: rotate(90deg); }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 25px; }
.case-item { background: rgba(0,0,0,0.2); padding: 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); display: flex; gap: 15px;}
.case-item span { color: rgba(85, 173, 255, 0.35); font-family: var(--font-code); font-size: 20px; font-weight: bold; }

/* =========================
   RESPONSIVENESS
========================= */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; text-align: left; padding-top: 100px; gap: 40px;}
    .hero-description { margin: 0 auto 20px; }
    .hero-buttons { justify-content: center; }
    
    .about-grid, .code-preview-grid { grid-template-columns: 1fr; gap: 40px;}
    .resume-card { grid-template-columns: 1fr; gap: 10px; padding: 25px; }
    
    .nav-links { position: absolute; top: 79px; left: 0; right: 0; background: var(--bg-surface); flex-direction: column; padding: 20px; display: none; border-bottom: 1px solid var(--border-color); box-shadow: 0 10px 20px rgba(0,0,0,0.5);}
    .nav-links.active { display: flex; }
    .menu-button { display: block; }
    
    .case-grid { grid-template-columns: 1fr; }
    .tilt-card { transform: none !important; }
    
    .preview-browser { transform: none; margin-top: 20px;}
}

@media (max-width: 600px) {
    /* Widen core sections */
    .section, .section-dark { padding: 60px 4%; width: 100%; }
    
    /* Scale Hero Typography */
    .hero { padding-top: 90px; text-align: center; }
    .hero h1 { font-size: clamp(28px, 8vw, 36px); line-height: 1.2; }
    .hero-buttons { flex-direction: column; width: 100%; gap: 12px; }
    .button { width: 100%; justify-content: center; }

    /* Force Grids to Single Column */
    .about-grid, .service-grid, .process-grid, .code-preview-grid, .contact-links { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    
    /* Fix AI Terminal Overflow */
    .terminal-container { border-radius: 8px; width: 100%; }
    .terminal-screen { padding: 15px 10px; min-height: 250px; font-size: 12px; }
    .terminal-input-area { padding: 0 10px 15px 10px; flex-direction: column; align-items: stretch; gap: 8px; }
    .terminal-buttons { padding: 10px; justify-content: center; }
    
    /* Fix Portfolio Button Wrapping */
    .project-actions { flex-wrap: wrap; gap: 10px; }
    .project-actions a, .project-actions button { flex: 1 1 100%; text-align: center; }
    
    /* Widen the Modal */
    .case-modal-box { width: 95%; padding: 25px 15px; border-radius: 8px; }
    .case-grid { grid-template-columns: 1fr; gap: 15px; }

    /* Adjust Code Lab */
    .showcase-editor, .preview-browser { width: 100%; }
    .code-window pre { font-size: 12px; padding: 15px; }
}

@keyframes floatingHero {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* CONTACT SECTION */
.contact-subtitle {
  color: #888;
  margin-bottom: 40px;
  font-size: 1.1rem;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.contact-box {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  padding:10px;
  border-radius: 8px;
  text-align: center;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s;
}

.contact-box:hover {
  transform: translateY(-5px);
  border-color:rgba(56, 189, 248, 0.5);
}

.contact-box h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.contact-box p {
  color: #aaa;
}

/* CONTACT ICON BASE STYLES */
.contact-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 15px auto; /* Centers the icon */
  background-color: #888; /* Default minimalist grey */
  transition: background-color 0.3s ease, transform 0.3s ease;

  /* Makes sure the mask fits perfectly in the 40px box */
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* FETCH 100% ACCURATE LOGOS VIA CDN */
.upwork-icon {
  -webkit-mask: url('https://cdn.simpleicons.org/upwork') no-repeat center;
  mask: url('https://cdn.simpleicons.org/upwork') no-repeat center;
}

.fiverr-icon {
  -webkit-mask: url('https://cdn.simpleicons.org/fiverr') no-repeat center;
  mask: url('https://cdn.simpleicons.org/fiverr') no-repeat center;
}

.freelancer-icon {
  -webkit-mask: url('https://cdn.simpleicons.org/freelancer') no-repeat center;
  mask: url('https://cdn.simpleicons.org/freelancer') no-repeat center;
}

.email-icon {
  -webkit-mask: url('https://cdn.simpleicons.org/gmail') no-repeat center;
  mask: url('https://cdn.simpleicons.org/gmail') no-repeat center;
}

/* .linkedin-icon {
  -webkit-mask: url('https://cdn.simpleicons.org/linkedin') no-repeat center;
  mask: url('https://cdn.simpleicons.org/linkedin') no-repeat center;
} */

.github-icon {
  -webkit-mask: url('https://cdn.simpleicons.org/github') no-repeat center;
  mask: url('https://cdn.simpleicons.org/github') no-repeat center;
}

/* BRAND HOVER EFFECTS */
.contact-box:hover .email-icon {
  background-color: #EA4335; /* Gmail Red */
}

.contact-box:hover .linkedin-icon {
  background-color: #0A66C2; /* LinkedIn Blue */
}

.contact-box:hover .github-icon {
  background-color: #ffffff; /* GitHub White */
}

.contact-box:hover .contact-icon {
  transform: scale(1.1);
}

.contact-box:hover .upwork-icon {
  background-color: #14A800; /* Upwork Green */
}

.contact-box:hover .fiverr-icon {
  background-color: #1DBF73; /* Fiverr Green */
}

.contact-box:hover .freelancer-icon {
  background-color: #29B2FE; /* Freelancer Blue */
}

